Class MiddleIdData
- java.lang.Object
-
- org.hibernate.envers.internal.entities.mapper.relation.MiddleIdData
-
public final class MiddleIdData extends Object
A class holding information about ids, which form a virtual "relation" from a middle-table. Middle-tables are used when mapping collections.
-
-
Constructor Summary
Constructors Constructor Description MiddleIdData(Configuration configuration, IdMappingData mappingData, String prefix, String entityName, boolean audited)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAuditEntityName()
String
getEntityName()
IdMapper
getOriginalMapper()
IdMapper
getPrefixedMapper()
boolean
isAudited()
-
-
-
Constructor Detail
-
MiddleIdData
public MiddleIdData(Configuration configuration, IdMappingData mappingData, String prefix, String entityName, boolean audited)
-
-
Method Detail
-
getOriginalMapper
public IdMapper getOriginalMapper()
- Returns:
- Original id mapper of the related entity.
-
getPrefixedMapper
public IdMapper getPrefixedMapper()
- Returns:
- prefixed id mapper (with the names for the id fields that are used in the middle table) of the related entity.
-
getEntityName
public String getEntityName()
- Returns:
- Name of the related entity (regular, not audited).
-
getAuditEntityName
public String getAuditEntityName()
- Returns:
- Audit name of the related entity.
-
isAudited
public boolean isAudited()
- Returns:
- Is the entity, to which this middle id data correspond, audited.
-
-