Package org.hibernate.envers.boot.model
Class IdentifierRelation
- java.lang.Object
-
- org.hibernate.envers.boot.model.IdentifierRelation
-
- All Implemented Interfaces:
AttributeContainer
public class IdentifierRelation extends Object implements AttributeContainer
A contract for identifier relations between persisted entities All attributes stored here are stored in their non-key form, see IdMetadataGenerator. Whenever this container is consulted and attributes are requested to be prefixed, a distinction at the call site determines whether attributes here are to be promoted or not.
-
-
Constructor Summary
Constructors Constructor Description IdentifierRelation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttribute(Attribute attribute)
Add an attribute to the container.List<Attribute>
getAttributesPrefixed(String prefix, Iterator<Selectable> iterator, boolean makeKey, boolean insertable)
List<Attribute>
getAttributesPrefixed(String prefix, ColumnNameIterator columnNameIterator, boolean makeKey, boolean insertable)
-
-
-
Method Detail
-
addAttribute
public void addAttribute(Attribute attribute)
Description copied from interface:AttributeContainer
Add an attribute to the container.- Specified by:
addAttribute
in interfaceAttributeContainer
- Parameters:
attribute
- the attribute, should not benull
-
getAttributesPrefixed
public List<Attribute> getAttributesPrefixed(String prefix, Iterator<Selectable> iterator, boolean makeKey, boolean insertable)
-
getAttributesPrefixed
public List<Attribute> getAttributesPrefixed(String prefix, ColumnNameIterator columnNameIterator, boolean makeKey, boolean insertable)
-
-