[
https://hibernate.onjira.com/browse/HHH-7074?page=com.atlassian.jira.plug...
]
Shawn Clowater commented on HHH-7074:
-------------------------------------
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.
the replacement annotations of @Entity are not working
-------------------------------------------------------
Key: HHH-7074
URL:
https://hibernate.onjira.com/browse/HHH-7074
Project: Hibernate ORM
Issue Type: Bug
Components: annotations
Affects Versions: 4.1.0
Environment: hibernate 4.1.0 mysql 5.1
Reporter: zhuzhangsuo
Labels: hibernate
Original Estimate: 168h
Remaining Estimate: 168h
---------------------
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=?
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira