Interface Entity.Builder

Enclosing interface:
Entity

public static interface Entity.Builder
A builder for Entity instances.
 
 Store domain = new Store();

 Entities entities = domain.entities();

 Entity customer = entities.builder(Customer.TYPE)
     .with(Customer.FIRST_NAME, "John")
     .with(Customer.LAST_NAME, "Doe")
     .build();
 
 
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Builds the Entity instance
    with(Attribute<T> attribute, T value)
    Adds the given attribute value to this builder
    Sets the default value for all attributes which have a default value.