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

question regarding auto generation of tables

 
Dinuka Arsakularatne
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

So im doing some examples from the book im reading. and i removed the following line from the persistence.xml file

<property name="hibernate.hbm2ddl.auto" value="create-drop"/>

because i do not want the app server to generate the tables for me as i have created them manually. But when i take this line out the @Id autogeneration does not work. Can any one please help me in this regard? How can i stop the app server from creating and dropping the schema's automatically and at the same time make a @Id autogeneration work? Any help is much appreciated.

Thank you

Dinuka
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic