I am using hbm2ddl to create my tables and it works just fine but I also want hibernate to load a .sql file to populate the database each time I run my project. I found that Hibernate should do this if my .sql file is in the classpath but it doesn't seem to work.
I am not sure if the file is in the classpath and I dont know how to find that out. Currently my load.sql is in Other Sources/csr/main/resources/
I googled and read that I could add a file to te class path in the properties/libraries menu of my project but it seems Maven project doesn't have that section.
I am using Mysql with JDBC and Netbeans 7.1.2.