Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to automate insert statement using hibernate config file

 
Kedar sk
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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

 
Kedar sk
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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.
Thanks
If this is a repost, sorry please post the solution web-reference.
Thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic