Class OneToOnePrimaryKeyJoinColumnMapper
- java.lang.Object
-
- org.hibernate.envers.internal.entities.mapper.AbstractMapper
-
- org.hibernate.envers.internal.entities.mapper.AbstractPropertyMapper
-
- org.hibernate.envers.internal.entities.mapper.relation.AbstractToOneMapper
-
- org.hibernate.envers.internal.entities.mapper.relation.AbstractOneToOneMapper
-
- org.hibernate.envers.internal.entities.mapper.relation.OneToOnePrimaryKeyJoinColumnMapper
-
- All Implemented Interfaces:
DynamicComponentMapperSupport
,ModifiedFlagMapperSupport
,PropertyMapper
public class OneToOnePrimaryKeyJoinColumnMapper extends AbstractOneToOneMapper
Property mapper forOneToOne
withPrimaryKeyJoinColumn
relation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hibernate.envers.internal.entities.mapper.relation.AbstractToOneMapper
AbstractToOneMapper.EntityInfo
-
-
Constructor Summary
Constructors Constructor Description OneToOnePrimaryKeyJoinColumnMapper(String entityName, String referencedEntityName, PropertyData propertyData, ServiceRegistry serviceRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
queryForReferencedEntity(AuditReaderImplementor versionsReader, AbstractToOneMapper.EntityInfo referencedEntity, Serializable primaryKey, Number revision)
-
Methods inherited from class org.hibernate.envers.internal.entities.mapper.relation.AbstractOneToOneMapper
mapModifiedFlagsToMapForCollectionChange, mapModifiedFlagsToMapFromEntity, nullSafeMapToEntityFromMap, nullSafeMapToEntityFromMap
-
Methods inherited from class org.hibernate.envers.internal.entities.mapper.relation.AbstractToOneMapper
getEntityInfo, getPropertyData, hasPropertiesWithModifiedFlag, mapCollectionChanges, mapToEntityFromMap, mapToEntityFromMap, mapToMapFromEntity, setPropertyValue
-
Methods inherited from class org.hibernate.envers.internal.entities.mapper.AbstractPropertyMapper
isDynamicComponentMap, markAsDynamicComponentMap
-
Methods inherited from class org.hibernate.envers.internal.entities.mapper.AbstractMapper
doPrivileged, getAndSetValue, getValueFromObject, getValueFromObject, newObjectInstance, setValueOnObject
-
-
-
-
Constructor Detail
-
OneToOnePrimaryKeyJoinColumnMapper
public OneToOnePrimaryKeyJoinColumnMapper(String entityName, String referencedEntityName, PropertyData propertyData, ServiceRegistry serviceRegistry)
-
-
Method Detail
-
queryForReferencedEntity
protected Object queryForReferencedEntity(AuditReaderImplementor versionsReader, AbstractToOneMapper.EntityInfo referencedEntity, Serializable primaryKey, Number revision)
- Specified by:
queryForReferencedEntity
in classAbstractOneToOneMapper
- 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.
-
-