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(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
    • 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