Package org.hibernate.envers.boot.model
Class IdentifierRelation
java.lang.Object
org.hibernate.envers.boot.model.IdentifierRelation
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(Attribute attribute) Add an attribute to the container.getAttributesPrefixed
(String prefix, Iterator<Selectable> iterator, boolean makeKey, boolean insertable) getAttributesPrefixed
(String prefix, ColumnNameIterator columnNameIterator, boolean makeKey, boolean insertable)
-
Constructor Details
-
IdentifierRelation
public IdentifierRelation()
-
-
Method Details
-
addAttribute
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)
-