Record Class GlobalUniqueConstraintContribution
java.lang.Object
java.lang.Record
ch.tocco.nice2.model.entity.api.schema.checks.GlobalUniqueConstraintContribution
Normally if an entity is bu-dependant, the field is only unique per business unit.
This contribution can be used to make a field unique overall business units
if an entity has a relation to the business unit (= bu-dependant).
-
Constructor Summary
ConstructorsConstructorDescriptionGlobalUniqueConstraintContribution(String modelName, String fieldName) Creates an instance of aGlobalUniqueConstraintContributionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldNamerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themodelNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GlobalUniqueConstraintContribution
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
modelName
Returns the value of themodelNamerecord component.- Returns:
- the value of the
modelNamerecord component
-
fieldName
Returns the value of thefieldNamerecord component.- Returns:
- the value of the
fieldNamerecord component
-