DATAMONGO-2241 - Retain MongoConverter using MongoTemplate.withSession(…).
We now reuse the MongoConverter instance that is associated with a MongoTemplate when using withSession(…) instead of creating a new converter instance.
In consequence, we're reusing PersistentEntity instances, EntityInstantiators and generated accessor classes.
Original Pull Request: #734
pull/792/head
Mark Paluch7 years agocommitted byChristoph Strobl
@ -259,8 +260,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,
@@ -259,8 +260,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware,