Class ShardKeyNames
- java.lang.Object
-
- dev.morphia.mapping.validation.classrules.ShardKeyNames
-
- All Implemented Interfaces:
ClassConstraint
public class ShardKeyNames extends Object implements ClassConstraint
Checks for duplicated attribute names
-
-
Constructor Summary
Constructors Constructor Description ShardKeyNames()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
check(Mapper mapper, EntityModel model, Set<ConstraintViolation> ve)
Check that an EntityModel meets the constraint
-
-
-
Method Detail
-
check
public void check(Mapper mapper, EntityModel model, 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 validationmodel
- the model to checkve
- the set of violations
-
-