Package org.javers.core.metamodel.clazz
Class EntityDefinitionBuilder
- java.lang.Object
-
- org.javers.core.metamodel.clazz.ClientsClassDefinitionBuilder<EntityDefinitionBuilder>
-
- org.javers.core.metamodel.clazz.EntityDefinitionBuilder
-
public class EntityDefinitionBuilder extends ClientsClassDefinitionBuilder<EntityDefinitionBuilder>
Fluent builder forEntityDefinition
, allows to set all optional attributes: Id-property, ignoredProperties and typeAlias, for example:EntityDefinitionBuilder.entityDefinition(Person.class) .withIdPropertyName(idPropertyName) .withIgnoredProperties(ignoredProperties) .withTypeName(typeName) .build();
- Since:
- 1.4
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityDefinition
build()
static EntityDefinitionBuilder
entityDefinition(java.lang.Class<?> entity)
EntityDefinitionBuilder
withIdPropertyName(java.lang.String idPropertyName)
EntityDefinitionBuilder
withShallowReference()
-
Methods inherited from class org.javers.core.metamodel.clazz.ClientsClassDefinitionBuilder
withIgnoredProperties, withIgnoredProperties, withIncludedProperties, withTypeName, withTypeName
-
-
-
-
Method Detail
-
entityDefinition
public static EntityDefinitionBuilder entityDefinition(java.lang.Class<?> entity)
-
withIdPropertyName
public EntityDefinitionBuilder withIdPropertyName(java.lang.String idPropertyName)
-
withShallowReference
public EntityDefinitionBuilder withShallowReference()
-
build
public EntityDefinition build()
- Overrides:
build
in classClientsClassDefinitionBuilder<EntityDefinitionBuilder>
-
-