• Post Reply Bookmark Topic Watch Topic
  • New Topic

hibernate hbm2ddl

 
Dave Brown
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Wondering if anyone can set me straight...

I have this setting in my hibernate config..

<property name="hbm2ddl.auto">update</property>

Which I believe creates and updates the database according to my mappings.. However it does create fine, but doesnt seem to update..

E.g. Say I make an adjust to my mappings by changing the length of a string property for example., it doesnt seem to reflect that when hibernate cranks up next time..
 
Sebastian Hennebrueder
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From my experience, I can tell you that update works very offen. And when it does not work tha you can use drop table x,y,z in your favourite sql navigator.

;-)
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. 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!