Skip to content

Commit 1618094

Browse files
author
Roman Janusz
committed
TypedMongoCollection auxiliary bincompat constructor
1 parent a8262fe commit 1618094

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

commons-mongo/jvm/src/main/scala/com/avsystem/commons/mongo/typed/TypedMongoCollection.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,9 @@ class TypedMongoCollection[E <: BaseMongoEntity] private(
345345

346346
@bincompat private[typed] def this(rawCollection: MongoCollection[_], format: MongoAdtFormat[E]) =
347347
this(rawCollection)(MongoEntityMeta.bincompatMeta(format))
348+
349+
@bincompat private[typed] def this(rawCollection: MongoCollection[_], meta: MongoEntityMeta[E]) =
350+
this(rawCollection)(meta)
348351
}
349352

350353
object TypedMongoCollection {

0 commit comments

Comments
 (0)