Package dev.morphia.mapping.validation
Interface ClassConstraint
-
- All Known Implementing Classes:
ContainsEmbeddedWithId,ContradictingFieldAnnotation,DuplicatedAttributeNames,EmbeddedAndId,EmbeddedAndValue,EntityAndEmbed,EntityCannotBeMapOrIterable,FieldConstraint,IdDoesNotMix,LazyReferenceMissingDependencies,LazyReferenceOnArray,MapKeyDifferentFromString,MapNotSerializable,MisplacedProperty,MultipleId,MultipleVersions,NoId,ReferenceToUnidentifiable,VersionMisuse
public interface ClassConstraint- Author:
- Uwe Schaefer, (us@thomas-daily.de)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheck(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve)Check that a MappedClass meets the constraint
-
-
-
Method Detail
-
check
void check(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve)
Check that a MappedClass meets the constraint- Parameters:
mc- the MappedClass to checkve- the set of violationsmapper- the Mapper to use for validation
-
-