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
  • Method Details

    • getPath

      String getPath()
      The path to a given field/property in dot notation.
      Returns:
      never null.
    • getProperty

      The current property.
      Returns:
      never null.
    • resolveEntity

      @Nullable <T> MongoPersistentEntity<T> resolveEntity(MongoPersistentProperty property)
      Obtain the MongoPersistentEntity for 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.