This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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
 
GeeCON Prague 2014
 
subject: I can't do my Hibernate just update the table it is dropping it