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=?
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.
--------------------- 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=?