1 of 1 people found this helpful
Please 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.
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.