Class EntityOrEmbed
- java.lang.Object
-
- dev.morphia.mapping.validation.classrules.EntityOrEmbed
-
- All Implemented Interfaces:
ClassConstraint
public class EntityOrEmbed extends Object implements ClassConstraint
Checks that @Entity or @Embed are used on a type.
-
-
Constructor Summary
Constructors Constructor Description EntityOrEmbed()
-
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
-
-