wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes I can't do my Hibernate just update the table it is dropping it Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "I can Watch "I can New topic
Author

I can't do my Hibernate just update the table it is dropping it

Josh Borg
Ranch Hand

Joined: Oct 02, 2012
Posts: 32

Hi I'm using hibernate with desktop and trying to do not drop tables, I need to export schema from hibernate if does not exist, for it I configured hibernate properties with "hibernate.hbm2ddl.auto= update" is that correct?


My hibernate.properties:



My "alimento class" generator:



Output:




Obrigado.
Josh Borg
Ranch Hand

Joined: Oct 02, 2012
Posts: 32

Made a new simpler version, I expect someone helps:

hibernate.properties




Main:





Output
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I can't do my Hibernate just update the table it is dropping it
 
Similar Threads
Hibernate - How to retrieve data from the database
org.hibernate.exception.SQLGrammarException: could not insert:
How to enumerate jar files and the classes in them?
getting an error while using oneTOone mapping
Problem with inserting data.