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-properties, ignoredProperties and typeAlias, for example:EntityDefinitionBuilder.entityDefinition(Person.class) .withIdPropertyName("firstName") .withIdPropertyName("lastName") .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)EntityDefinitionBuilderwithIdPropertyNames(java.lang.String... idPropertyNames)EntityDefinitionBuilderwithIdPropertyNames(java.util.List<java.lang.String> idPropertyNames)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)
-
withIdPropertyNames
public EntityDefinitionBuilder withIdPropertyNames(java.lang.String... idPropertyNames)
-
withIdPropertyNames
public EntityDefinitionBuilder withIdPropertyNames(java.util.List<java.lang.String> idPropertyNames)
-
withShallowReference
public EntityDefinitionBuilder withShallowReference()
-
build
public EntityDefinition build()
- Overrides:
buildin classClientsClassDefinitionBuilder<EntityDefinitionBuilder>
-
-