• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate init DB

 
avihai marchiano
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

I work with Jboss and ejb3.

Hibernate is generate the tables in case that they dont exists during the server startup.

I need to insert some entries after the schema was created and before the application is started.
Does any one know how to do this?

I cant use jboss-sar because the database wasnt created when the sar loaded.

Thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic