This content has been marked as final.
Show 2 replies
-
1. Re: Servlet Security with in-memory database h2
mayerw01 Dec 11, 2019 12:08 PM (in response to saleemtol)1 of 1 people found this helpfulPlease look into th hibernate documentation Hibernate ORM 5.3.14.Final User Guide
via the property javax.persistence.hibernate.hbm2ddl.import_files you may specify the file name (default is import.sql).The default path is the class directory (eg WEB-INF/classes)
But via the property javax.persistence.sql-load-script-source you may specify the path to the file.
-
2. Re: Servlet Security with in-memory database h2
saleemtol Dec 12, 2019 2:35 AM (in response to mayerw01)Thanks for reply.
I found the root cause of problem. The WIDLFY was not scanning the persistence.xml file as I had put it under WEB-INF. Instead of it, I put the persistence.xml file under src/META-INF/persistence.xml then its working fine.