the replacement annotations of @Entity are not working

Description

--------------------- org.hibernate.annotations.Entity#optimisticLock
@org.hibernate.annotations.OptimisticLocking

org.hibernate.annotations.Entity#polymorphism
@org.hibernate.annotations.Polymorphism

org.hibernate.annotations.Entity#selectBeforeUpdate
@org.hibernate.annotations.SelectBeforeUpdate

org.hibernate.annotations.Entity#dynamicUpdate
@org.hibernate.annotations.DynamicUpdate

org.hibernate.annotations.Entity#dynamicInsert
@org.hibernate.annotations.DynamicInsert
----------------------------
The annotations above are currently not working

The annotation org.hibernate.annotations.Entity has deprecated ,and it suggest to use @DynamicUpdate to instead of the property dynamicUpdate ,but it has no effect

when I modify the value of name
The sql of @org.hibernate.annotations.Entity(dynamicUpdate=true): update t_user set user_name=? where user_id=?

The sql of @DynamicUpdate: update t_user set user_age=?, user_name=? where user_id=?

Activity

Show:

Shawn ClowaterApril 16, 2012 at 5:49 PM

Ran into this myself last week, I was going to work around it (vs. putting all the @Entity annotations back) by overriding the useDynamicUpdate() method of the AbstractEntityPersister but that method is never called so that doesn't work either.

Fixed

Details

Assignee

Reporter

Labels

Original estimate

Time tracking

1.3h logged168h remaining

Components

Fix versions

Affects versions

Priority

Created February 16, 2012 at 3:22 PM
Updated April 22, 2015 at 6:24 PM
Resolved May 22, 2012 at 11:13 PM