Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General 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: 35
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: 35
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic