Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Josh Borg
Ranch Hand
Posts: 37
Chrome Eclipse IDE Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
Chrome Eclipse IDE Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Made a new simpler version, I expect someone helps:

hibernate.properties




Main:





Output
 
I am going down to the lab. Do NOT let anyone in. Not even this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!