Module is.codion.framework.domain
Interface Entities.Configurable
- Enclosing interface:
Entities
public static interface Entities.Configurable
Provides a
Entities.Configurable Entities instance-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(EntityDefinition definition) Adds an entity definition.entities()voidvalidateForeignKeys(boolean validateForeignKeys) Specifies whether to validate foreign keys when created, asserting that the referenced entity has been defined.
-
Method Details
-
entities
Entities entities()- Returns:
- the
Entitiesinstance being configured
-
add
Adds an entity definition.- Parameters:
definition- the entity definition to add- Throws:
IllegalArgumentException- in case the entities instance already contains the given definition
-
validateForeignKeys
void validateForeignKeys(boolean validateForeignKeys) Specifies whether to validate foreign keys when created, asserting that the referenced entity has been defined. Disable in case of cyclical dependencies.- Parameters:
validateForeignKeys- true if foreign keys should be validated
-