Interface MongoJsonSchemaCreator.JsonSchemaPropertyContext
- Enclosing interface:
MongoJsonSchemaCreator
public static interface MongoJsonSchemaCreator.JsonSchemaPropertyContext
The context in which a specific
getProperty() is encountered during schema creation.- Since:
- 3.3
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptiongetPath()The path to a given field/property in dot notation.The current property.<T> MongoPersistentEntity<T> resolveEntity(MongoPersistentProperty property) Obtain theMongoPersistentEntityfor a given property.
-
Method Details
-
getPath
-
getProperty
-
resolveEntity
Obtain theMongoPersistentEntityfor a given property.- Type Parameters:
T-- Parameters:
property- must not be null.- Returns:
- null if the property is not an entity. It is nevertheless recommend to check
PersistentProperty.isEntity()first.
-