• 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

my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!