[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-6467) Non-association attributes are not dirty-checked
Steve Ebersole (JIRA)
noreply at atlassian.com
Thu Jul 21 00:22:15 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Ebersole closed HHH-6467.
-------------------------------
Resolution: Fixed
> Non-association attributes are not dirty-checked
> ------------------------------------------------
>
> Key: HHH-6467
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6467
> Project: Hibernate Core
> Issue Type: Bug
> Components: core
> Reporter: Gail Badner
> Assignee: Steve Ebersole
> Fix For: 4.0.0.next
>
> Time Spent: 25m
> Remaining Estimate: 0h
>
> The problem is that PropertyFactory.buildStandardProperty(AttributeBinding property, boolean lazyAvailable) does not check if the underlying columns are updateable when setting alwaysDirtyCheck. Also, it only seems to be correct for associations.
> Here is how it is defined:
> final boolean alwaysDirtyCheck = type.isAssociationType() && ( (AssociationType) type ).isAlwaysDirtyChecked();
> It worked before because I used the following for the "checkable" argument in the StandardProperty constructor:
> alwaysDirtyCheck || simpleProperty.isUpdatable()
> AttributeBinding.isUpdatable() has been removed now, so now alwaysDirtyCheck is passed as the "checkable" arg.
--
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