-
Notifications
You must be signed in to change notification settings - Fork 1.1k
DATAMONGO-1919 - Allow reactive-only usage of ReactiveMongoTemplate. #572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
simpleTypes.add(org.bson.Document.class); | ||
simpleTypes.add(Pattern.class); | ||
simpleTypes.add(Binary.class); | ||
simpleTypes.add(UUID.class); | ||
|
||
if (ClassUtils.isPresent("org.bson.types.CodeWScope", MongoSimpleTypes.class.getClassLoader())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the latest driver bits, those changes here do not seem to be necessary any longer. Comparing the org.bson
packages of org.mongodb:mongo-java-driver:3.8.0
and org.mongodb:bson:3.8.0
shows no difference at all.
I think we should wait until #576 is resolved.
We now support reactive-only usage of Spring Data MongoDB without the need to use the synchronous driver or even having it on the class path. We conditionally register CodeWScope/CodeWithScope types that are bundled with the particular driver distributions. NoOpDbRefResolver is now a top-level type to be used with a reactive-only MongoMappingContext.
Fix typo, use diamond syntax where possible.
Remove unused imports, deprecated MongoClientVersion methods for drivers no longer supported and remove their usage throughout the codebase and partially revert changes in MongoSimpleTypes because all org.bson types have been included in the 3.8 release of com.mongodb.bson.
374152a
to
5f2d183
Compare
We now support reactive-only usage of Spring Data MongoDB without the need to use the synchronous driver or even having it on the class path. We conditionally register CodeWScope/CodeWithScope types that are bundled with the particular driver distributions. NoOpDbRefResolver is now a top-level type to be used with a reactive-only MongoMappingContext. Original Pull Request: #572
Fix typo, use diamond syntax where possible. Original Pull Request: #572
Remove unused imports, deprecated MongoClientVersion methods for drivers no longer supported and remove their usage throughout the codebase and partially revert changes in MongoSimpleTypes because all org.bson types have been included in the 3.8 release of org.mongodb.bson. Original Pull Request: #572
We now support reactive-only usage of Spring Data MongoDB without the need to use the synchronous driver or even having it on the class path. We conditionally register
CodeWScope
/CodeWithScope
types that are bundled with the particular driver distributions.NoOpDbRefResolver
is now a top-level type to be used with a reactive-onlyMongoMappingContext
.Related ticket: DATAMONGO-1919.