Class MultipleVersions
- java.lang.Object
-
- dev.morphia.mapping.validation.classrules.MultipleVersions
-
- All Implemented Interfaces:
ClassConstraint
public class MultipleVersions extends Object implements ClassConstraint
Checks the multiple fields aren't annotated with @Version
-
-
Constructor Summary
Constructors Constructor Description MultipleVersions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
check(Mapper mapper, EntityModel entityModel, Set<ConstraintViolation> ve)
Check that an EntityModel meets the constraint
-
-
-
Method Detail
-
check
public void check(Mapper mapper, EntityModel entityModel, Set<ConstraintViolation> ve)
Description copied from interface:ClassConstraint
Check that an EntityModel meets the constraint- Specified by:
check
in interfaceClassConstraint
- Parameters:
mapper
- the Mapper to use for validationentityModel
- the model to checkve
- the set of violations
-
-