ManyToOneType.isDirty

Description

public boolean isDirty(
Object old,
Object current,
SessionImplementor session) throws HibernateException {
if ( isSame( old, current ) ) {
return false;
}
Object oldid = getIdentifier( old, session );
Object newid = getIdentifier( current, session );
return getIdentifierType( session ).isDirty( oldid, newid, session );
}

return getIdentifierType( session ).isDirty( oldid, newid, session );

==>

return getIdentifierOrUniqueKeyType( session ).isDirty( oldid, newid, session );

Environment

h 4.3.5
oracle 11gr2

Activity

Show:
Brett Meyer
August 15, 2014, 12:35 PM

Not sure what this one is for...

xinhuil
August 18, 2014, 3:04 AM

for property-ref in xml
getIdentifierType( session ) return identity type of the associated entity
instead of what the property-ref property type is expected

xinhuil
August 18, 2014, 3:10 AM

ADD:
Object oldid = getIdentifier( old, session );
Object newid = getIdentifier( current, session );

getIdentifier() process the property-ref perfectly

Assignee

Unassigned

Reporter

xinhuil

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

Affirmative

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Blocker
Configure