Interface MongoEntityMetadata<T>

All Superinterfaces:
EntityMetadata<T>

public interface MongoEntityMetadata<T> extends EntityMetadata<T>
Extension of EntityMetadata to additionally expose the collection name an entity shall be persisted to.
Author:
Oliver Gierke
  • 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