Package dev.morphia.annotations
Annotation Type Validation
-
@Documented @Inherited @Retention(RUNTIME) @Target(TYPE) public @interface Validation
Defines the document validation logic for a collection.- Since:
- 1.3
-
-
Element Detail
-
value
java.lang.String value
- Returns:
- the query used to validate documents in a collection. This query is not validated so care must be taken to ensure document field names and types are correct.
- MongoDB documentation
- core/document-validation/
-
-