Package org.javers.core.metamodel.clazz
Class EntityDefinitionBuilder
java.lang.Object
org.javers.core.metamodel.clazz.ClientsClassDefinitionBuilder<EntityDefinitionBuilder>
org.javers.core.metamodel.clazz.EntityDefinitionBuilder
Fluent builder for
EntityDefinition,
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
Modifier and TypeMethodDescriptionbuild()static EntityDefinitionBuilderentityDefinition(Class<?> entity) withIdPropertyName(String idPropertyName) withIdPropertyNames(String... idPropertyNames) withIdPropertyNames(List<String> idPropertyNames) Methods inherited from class org.javers.core.metamodel.clazz.ClientsClassDefinitionBuilder
withIgnoredProperties, withIgnoredProperties, withIncludedProperties, withShallowProperties, withTypeName, withTypeName
-
Method Details
-
entityDefinition
-
withIdPropertyName
-
withIdPropertyNames
-
withIdPropertyNames
-
withShallowReference
-
build
- Overrides:
buildin classClientsClassDefinitionBuilder<EntityDefinitionBuilder>
-