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 | Description |
|---|---|---|
EntityDefinition |
build() |
|
static EntityDefinitionBuilder |
entityDefinition(java.lang.Class<?> entity) |
|
EntityDefinitionBuilder |
withIdPropertyName(java.lang.String idPropertyName) |
|
EntityDefinitionBuilder |
withShallowReference() |
withIgnoredProperties, withIgnoredProperties, withIncludedProperties, withTypeName, 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>