org.hibernate.envers.entities.mapper.relation
Class OneToOneNotOwningMapper
java.lang.Object
org.hibernate.envers.entities.mapper.relation.AbstractToOneMapper
org.hibernate.envers.entities.mapper.relation.AbstractOneToOneMapper
org.hibernate.envers.entities.mapper.relation.OneToOneNotOwningMapper
- All Implemented Interfaces:
- PropertyMapper
public class OneToOneNotOwningMapper
- extends AbstractOneToOneMapper
Property mapper for not owning side of OneToOne
relation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OneToOneNotOwningMapper
public OneToOneNotOwningMapper(String notOwningEntityName,
String owningEntityName,
String owningReferencePropertyName,
PropertyData propertyData)
queryForReferencedEntity
protected Object queryForReferencedEntity(AuditReaderImplementor versionsReader,
AbstractToOneMapper.EntityInfo referencedEntity,
Serializable primaryKey,
Number revision)
- Specified by:
queryForReferencedEntity
in class AbstractOneToOneMapper
- Parameters:
versionsReader
- Audit reader.referencedEntity
- Referenced entity descriptor.primaryKey
- Referenced entity identifier.revision
- Revision number.
- Returns:
- Referenced object or proxy of one-to-one relation.
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.