Interface ConstraintNameGenerator

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ConstraintNameGenerator
Generator for constraint names
Since:
1.11.0
Author:
Michael J. Simons
Soundtrack
Moonbootica - ...And Then We Started To Dance
  • Method Details

    • generateName

      String generateName(Constraint.Type type, Collection<PropertyType<?>> properties)
      Generates a name for an index with the given type for the given list of properties.
      Parameters:
      type - The type of the constraint
      properties - The properties to create the constraint for. All properties will have the same owner.
      Returns:
      A valid constraint name