org.hibernate.annotations.Entity在Hibernate 4中弃用? [英] org.hibernate.annotations.Entity deprecated in Hibernate 4?
本文介绍了org.hibernate.annotations.Entity在Hibernate 4中弃用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试更新到Hibernate 4,并且我得到了org.hibernate.annotations.Entity已被弃用。然而,没有任何文件似乎表明这是事实。任何人都有这方面的见解?
@ org.hibernate.annotations.Entity(dynamicUpdate = true)
code>
解决方案
是的,它已在4.0 +中弃用:
弃用org.hibernate.annotations.Entity
其单个属性/值应该成为注释。
在4.1
中删除的时间表
您应该使用 @DynamicUpdate
改为
以下是修复的JIRA 对此进行的讨论。
I am attempting to update to Hibernate 4 and I am getting that org.hibernate.annotations.Entity is deprecated. None of the documentation however seems to indicate that this is the case. Anyone have any insight into this?
@org.hibernate.annotations.Entity(dynamicUpdate = true)
解决方案
Yes it is deprecated in 4.0+:
Deprecate org.hibernate.annotations.Entity
Its individual attributes/values should become annotations.
Schedule for removal in 4.1
You should use @DynamicUpdate
instead
Here is a fixed JIRA talking about it.
这篇关于org.hibernate.annotations.Entity在Hibernate 4中弃用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文