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