Class DefaultMongoCollectionNameProvider

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String provide​(io.micronaut.data.model.PersistentEntity persistentEntity)
      Provides the MongoDB collection name based on the PersistentEntity.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultMongoCollectionNameProvider

        public DefaultMongoCollectionNameProvider()
    • Method Detail

      • provide

        public java.lang.String provide​(io.micronaut.data.model.PersistentEntity persistentEntity)
        Description copied from interface: MongoCollectionNameProvider
        Provides the MongoDB collection name based on the PersistentEntity.
        Specified by:
        provide in interface MongoCollectionNameProvider
        Parameters:
        persistentEntity - The persistent entity that is associated to the collection
        Returns:
        The collection name