I am having a JPA entity for “User”. I want to generate a sql statement for this entity using maven hibernate3 Plugin. I tried using persistence.xml as configured in https://stackoverflow.com/questions/6855119/how-to-generate-schema-through-hibernate3hbdml-in-persistence-xml but my configuration fails. How to configure persistence.xml with any simple database and access the table created using maven hibernate3:hbm2ddl plugin.
Share
Here is my example configuration for HSQLdb which generates
src/main/resources/db-scheme.sql:From
pom.xml:src/main/resources/database.properties:src/main/resources/META-INF/persistence.xml:HTH