I am using Hibernate 4. When I use
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true,
selectBeforeUpdate = true)
@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)
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