@DynamicInsert @DynamicUpdate does not work?

后端 未结 2 1803
悲哀的现实
悲哀的现实 2020-12-31 10:27

I am using Hibernate 4. When I use

    @org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true,
 selectBeforeUpdate = true)
相关标签:
2条回答
  • 2020-12-31 11:13

    @SelectBeforeUpdate - works in Hibernate 4.x since org.hibernate.annotations.Entity has been deprecated Note: This is a replacement to the earlier org.hibernate.annotations.Entity(selectBeforeUpdate=true)

    0 讨论(0)
  • 2020-12-31 11:27

    They are broken in the current released version (4.1.0 through 4.1.3). The issue is https://hibernate.atlassian.net/browse/HHH-7074

    EDIT: updated the link to the current url. This was fixed in hibernate 4.1.4

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