Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

question regarding auto generation of tables  RSS feed

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="" 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

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!