• 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.

;-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic