• 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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!