Hibernate's 'hbm2ddl.auto' property with value 'create' is not re-creating table

后端 未结 2 1193
既然无缘
既然无缘 2020-12-19 15:55

I\'m working on my first simple Hibernate application. The crux of the problem is, I had renamed a member of persistent class (with apt changes to all other parts) and re-ru

相关标签:
2条回答
  • 2020-12-19 16:43

    Try <property name="hibernate.hbm2ddl.auto">create</property> instead of <property name="hbm2ddl.auto">create</property>

    0 讨论(0)
  • 2020-12-19 16:56

    Try specifying hibernate.hbm2ddl.auto=create instead of just hbm2ddl.auto=create.

    This is what the documentation uses.

    0 讨论(0)
提交回复
热议问题