I am trying to create orders-ddl.sql file, using the schema-export option in Ant-build file, which will have insert statements generated automatically with values defined in hibernate config file, but I dont know how to do so.
Following is the hibernate config file
posted 10 years ago
Can any one please help with this statement
Auxiliary database objects allow for the CREATE and DROP of arbitrary database objects. In conjunction with Hibernate's schema evolution tools, they have the ability to fully define a user schema within the Hibernate mapping files. Although designed specifically for creating and dropping things like triggers or stored procedures, any SQL command that can be run via a java.sql.Statement.execute() method is valid (for example, ALTERs, INSERTS, etc.).
From this webpage Chapter 5. Basic O/R mapping under Session 5.7. Auxiliary database objects. As I think It might answer the question I have posted above.
If this is a repost, sorry please post the solution web-reference.