Class MongoCollectionUtils

java.lang.Object
org.springframework.data.mongodb.MongoCollectionUtils

public abstract class MongoCollectionUtils extends Object
Helper class featuring helper methods for working with MongoDb collections.

Mainly intended for internal use within the framework.
Since:
1.0
Author:
Thomas Risberg
  • Method Details

    • getPreferredCollectionName

      public static String getPreferredCollectionName(Class<?> entityClass)
      Obtains the collection name to use for the provided class
      Parameters:
      entityClass - The class to determine the preferred collection name for
      Returns:
      The preferred collection name