aspose file tools*
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
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
 
jQuery in Action, 2nd edition
 
subject: I can't do my Hibernate just update the table it is dropping it