Hi,

I want to generate database schema to a sql file and feed the schema into my
database. I have hibernate annotations instead of hbm.xml files.

<plugin>
       <groupId>org.codehaus.mojo</groupId>
       <artifactId>hibernate3-maven-plugin</artifactId>
       <version>2.0-SNAPSHOT</version
       <configuration>
         <components>
           <component>
             <name>hbm2ddl</name>
           </component>
         </components>
         <componentProperties>
           <drop>true</drop>
           <create>true</create>

<configurationfile>src/main/resources/etc/hibernate.cfg.xml</configurationfile>
         </componentProperties>
       </configuration>
</plugin>

I believe something is missing. Thanks!

Cheers

Reply via email to