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 EntityDefinitionbuild()static EntityDefinitionBuilderentityDefinition(java.lang.Class<?> entity)EntityDefinitionBuilderwithIdPropertyName(java.lang.String idPropertyName)EntityDefinitionBuilderwithShallowReference()-
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:
buildin classClientsClassDefinitionBuilder<EntityDefinitionBuilder>
-
-