Interface Entities.Configurable

Enclosing interface:
Entities

public static interface Entities.Configurable
Provides a Entities.Configurable Entities instance
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(Entities entities)
    Adds all entity definitions from the given instance.
    void
    add(Entities entities, Collection<EntityType> entityTypes)
    Adds the given entity definitions, including dependencies, from the given instance.
    void
    add(EntityDefinition definition)
    Adds an entity definition.
     
    void
    validateForeignKeys(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 Entities instance being configured
    • add

      void add(EntityDefinition definition)
      Adds an entity definition.
      Parameters:
      definition - the entity definition to add
      Throws:
      IllegalArgumentException - in case the entities instance already contains the given definition
    • add

      void add(Entities entities)
      Adds all entity definitions from the given instance.
      Parameters:
      entities - the entities instance from which to add
    • add

      void add(Entities entities, Collection<EntityType> entityTypes)
      Adds the given entity definitions, including dependencies, from the given instance.
      Parameters:
      entities - the entities
      entityTypes - the types to add
    • 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