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.
Generator for constraint names
- Since:
- 1.11.0
- Author:
- Michael J. Simons
- Soundtrack
- Moonbootica - ...And Then We Started To Dance
-
Method Summary
Modifier and TypeMethodDescriptiongenerateName
(Constraint.Type type, Collection<PropertyType<?>> properties) Generates a name for an index with the giventype
for the given list ofproperties
.
-
Method Details
-
generateName
Generates a name for an index with the giventype
for the given list ofproperties
.- Parameters:
type
- The type of the constraintproperties
- The properties to create the constraint for. All properties will have the same owner.- Returns:
- A valid constraint name
-