[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-7074) the replacement annotations of @Entity are not working
Strong Liu (JIRA)
noreply at atlassian.com
Sat Apr 14 11:45:49 EDT 2012
[ https://hibernate.onjira.com/browse/HHH-7074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Strong Liu updated HHH-7074:
----------------------------
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=?
was:
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=?
Summary: the replacement annotations of @Entity are not working (was: The annotation of @DynamicUpdate has no effect)
> 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
More information about the hibernate-issues
mailing list