The entity class to which this rule belongs.
A function that returns true when the field value is
valid. Receives both the field value and the full entity instance.
A short, human-readable description of the constraint, appended to the thrown error on failure.
Property decorator that attaches a validation rule to the decorated field. The rule is enforced on every EntityRepository.create and EntityRepository.update call.