Class MappingTools
java.lang.Object
org.hibernate.envers.internal.tools.MappingTools
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcreateComponentPrefix(String componentName) static StringcreateToOneRelationPrefix(String referencePropertyName) static StringgetReferencedEntityName(Value value) static booleanignoreNotFound(Value value)
-
Constructor Details
-
MappingTools
public MappingTools()
-
-
Method Details
-
createComponentPrefix
- Parameters:
componentName- Name of the component, that is, name of the property in the entity that references the component.- Returns:
- A prefix for properties in the given component.
-
createToOneRelationPrefix
- Parameters:
referencePropertyName- The name of the property that holds the relation to the entity.- Returns:
- A prefix which should be used to prefix an id mapper for the related entity.
-
getReferencedEntityName
-
ignoreNotFound
- Parameters:
value- Persistent property.- Returns:
falseif lack of associated entity shall raise an exception,trueotherwise.
-