public class EntityDefinitionBuilder extends ClientsClassDefinitionBuilder<EntityDefinitionBuilder>
EntityDefinition,
allows to set all optional attributes:
Id-property, ignoredProperties and typeAlias, for example:
EntityDefinitionBuilder.entityDefinition(Person.class)
.withIdPropertyName(idPropertyName)
.withIgnoredProperties(ignoredProperties)
.withTypeName(typeName)
.build();
| Modifier and Type | Method and Description |
|---|---|
EntityDefinition |
build() |
static EntityDefinitionBuilder |
entityDefinition(java.lang.Class<?> entity) |
Optional<java.lang.String> |
getIdPropertyName() |
boolean |
isShallowReference() |
EntityDefinitionBuilder |
withIdPropertyName(java.lang.String idPropertyName) |
EntityDefinitionBuilder |
withShallowReference() |
getClazz, getIgnoredProperties, getTypeName, withIgnoredProperties, withIgnoredProperties, withTypeNamepublic static EntityDefinitionBuilder entityDefinition(java.lang.Class<?> entity)
public EntityDefinitionBuilder withIdPropertyName(java.lang.String idPropertyName)
public EntityDefinitionBuilder withShallowReference()
public EntityDefinition build()
build in class ClientsClassDefinitionBuilder<EntityDefinitionBuilder>public Optional<java.lang.String> getIdPropertyName()
public boolean isShallowReference()