Package dev.morphia.mapping.validation
Interface ClassConstraint
-
- All Known Implementing Classes:
ContradictingAnnotations,DuplicatedAttributeNames,EntityAndEmbed,EntityOrEmbed,IdDoesNotMix,LazyReferenceMissingDependencies,LazyReferenceOnArray,MapKeyTypeConstraint,MultipleId,MultipleVersions,PropertyConstraint,ReferenceToUnidentifiable,ShardKeyNames,VersionMisuse
public interface ClassConstraintDefines a constraint for validation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheck(Mapper mapper, EntityModel model, Set<ConstraintViolation> ve)Check that an EntityModel meets the constraint
-
-
-
Method Detail
-
check
void check(Mapper mapper, EntityModel model, Set<ConstraintViolation> ve)
Check that an EntityModel meets the constraint- Parameters:
model- the model to checkve- the set of violationsmapper- the Mapper to use for validation- Since:
- 2.1
-
-