IdentifiableMongoDbPersistence<T extends IIdentifiable<K> , K> constructor
IdentifiableMongoDbPersistence<T extends IIdentifiable<K> , K> (
- String? collection
Creates a new instance of the persistence component.
collection
(optional) a collection name.
Implementation
IdentifiableMongoDbPersistence(String? collection) : super(collection) {
if (collection == null) {
throw Exception('Collection name could not be null');
}
}