/**
* {@inheritDoc}
*/
public boolean isEqual(Object x, Object y, SessionFactoryImplementor factory) {
EntityPersister persister = factory.getEntityPersister(associatedEntityName);
if ( !persister.canExtractIdOutOfEntity() ) {
return super.isEqual(x, y );
}
final Class mappedClass = persister.getMappedClass();
Serializable xid;