Interface MongoEntityMetadata<T>

All Superinterfaces:
org.springframework.data.repository.core.EntityMetadata<T>

public interface MongoEntityMetadata<T> extends org.springframework.data.repository.core.EntityMetadata<T>
Extension of EntityMetadata to additionally expose the collection name an entity shall be persisted to.
Author:
Oliver Gierke
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the MongoPersistentEntity that supposed to determine the collection to be queried.
    Returns the name of the collection the entity shall be persisted to.

    Methods inherited from interface org.springframework.data.repository.core.EntityMetadata

    getJavaType
  • Method Details

    • getCollectionName

      String getCollectionName()
      Returns the name of the collection the entity shall be persisted to.
      Returns:
    • getCollectionEntity

      MongoPersistentEntity<?> getCollectionEntity()
      Returns the MongoPersistentEntity that supposed to determine the collection to be queried.
      Returns:
      Since:
      2.0.4