Class MappingTools
java.lang.Object
org.hibernate.envers.internal.tools.MappingTools
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
createComponentPrefix
(String componentName) static String
createToOneRelationPrefix
(String referencePropertyName) static String
getReferencedEntityName
(Value value) static boolean
ignoreNotFound
(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:
false
if lack of associated entity shall raise an exception,true
otherwise.
-