Class EntityDefinitionBuilder


  • public class EntityDefinitionBuilder
    extends ClientsClassDefinitionBuilder<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