Class MappingTools

java.lang.Object
org.hibernate.envers.internal.tools.MappingTools

public abstract class MappingTools extends Object
  • Constructor Details

    • MappingTools

      public MappingTools()
  • Method Details

    • 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.
    • getReferencedEntityName

      public static String getReferencedEntityName(Value value)
    • ignoreNotFound

      public static boolean ignoreNotFound(Value value)
      Parameters:
      value - Persistent property.
      Returns:
      false if lack of associated entity shall raise an exception, true otherwise.