Uses of Interface
is.codion.framework.domain.entity.Entity.Builder
Packages that use Entity.Builder
Package
Description
Package configuration values:
EntityValidator.STRICT_VALIDATION
Entities.VALIDATE_FOREIGN_KEYS
Entities.STRICT_DESERIALIZATION
AttributeDefinition.FRACTION_DIGITSAttributeDefinition.NUMBER_GROUPINGAttributeDefinition.GROUPING_SEPARATORAttributeDefinition.DECIMAL_SEPARATORAttributeDefinition.USE_LEXICAL_STRING_COMPARATORAttributeDefinition.ROUNDING_MODEForeignKeyDefinition.REFERENCE_DEPTH
-
Uses of Entity.Builder in is.codion.framework.domain.entity
Methods in is.codion.framework.domain.entity that return Entity.BuilderModifier and TypeMethodDescriptionstatic Entity.BuilderEntity.builder(Entity.Key key) Entity.Copy.builder()Returns a newEntity.Builderinstance initialized with the values and original values from this entity.Clears the given value from this builder, current as well as original value if anyEntity.Builder.clearPrimaryKey()Clears the primary key values from this builder, current as well as original values if anyEntities.entity(EntityType entityType) Creates a newEntity.Builderinstance for the given entityTypeEntities entities = domain.entities(); // Build an entity with initial values Entity customer = entities.entity(Customer.TYPE) .with(Customer.NAME, "John Doe") .with(Customer.EMAIL, "john@example.com") .with(Customer.ACTIVE, true) .build(); // Build with a foreign key reference Entity order = entities.entity(Order.TYPE) .with(Order.CUSTOMER_FK, customer) .with(Order.DATE, LocalDate.now()) .with(Order.TOTAL, 100.50) .build();Entity.Builder.originalPrimaryKey()Resets the primary to its original state, in case the original value is available<T> Entity.BuilderAdds the given attribute value to this builderEntity.Builder.withDefaults()Sets the default value for all attributes which have a default value.