Class MappingTools
- java.lang.Object
-
- org.hibernate.envers.internal.tools.MappingTools
-
public abstract class MappingTools extends Object
-
-
Constructor Summary
Constructors Constructor Description MappingTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
createComponentPrefix(String componentName)
static String
createToOneRelationPrefix(String referencePropertyName)
static String
getReferencedEntityName(Value value)
static boolean
ignoreNotFound(Value value)
-
-
-
Method Detail
-
createComponentPrefix
public static String createComponentPrefix(String componentName)
- 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
public static String createToOneRelationPrefix(String referencePropertyName)
- 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.
-
ignoreNotFound
public static boolean ignoreNotFound(Value value)
- Parameters:
value
- Persistent property.- Returns:
false
if lack of associated entity shall raise an exception,true
otherwise.
-
-