[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-6467) Non-association attributes are not dirty-checked
Gail Badner (JIRA)
noreply at atlassian.com
Wed Jul 20 18:33:15 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gail Badner updated HHH-6467:
-----------------------------
Description:
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.
> 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: Gail Badner
> Fix For: 4.0.0.next
>
>
> 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