Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

org.hibernate.annotations.Entity deprecated in Hibernate 4?

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) 
like image 987
MTR Avatar asked Nov 02 '11 19:11

MTR


1 Answers

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.

like image 182
tolitius Avatar answered Sep 16 '22 19:09

tolitius