Class EntityDefinition

java.lang.Object
org.javers.core.metamodel.clazz.ClientsClassDefinition
org.javers.core.metamodel.clazz.EntityDefinition

public class EntityDefinition extends ClientsClassDefinition
Recipe for EntityType
See Also:
  • Constructor Details

    • EntityDefinition

      public EntityDefinition(Class<?> entity)
      Recipe for Entity with Id-property selected by @Id annotation
    • EntityDefinition

      public EntityDefinition(Class<?> entity, String idPropertyName)
      Recipe for Entity with Id-property selected explicitly by name
    • EntityDefinition

      public EntityDefinition(Class<?> entity, String idPropertyName, List<String> ignoredProperties)
  • Method Details

    • hasExplicitId

      public boolean hasExplicitId()
    • getIdPropertyNames

      public List<String> getIdPropertyNames()
      Returns:
      an immutable, non-null list
    • isShallowReference

      public boolean isShallowReference()