[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-6467?page=c...
]
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