Christoph Strobl
eda1c79315
Move and add tests to UpdateMapper.
...
Also update author information.
Original Pull Request: #3815
4 years ago
divyajnu08
e7150f525e
Fix update mapping using nested integer keys on map structures.
...
Closes : #3775
Original Pull Request: #3815
4 years ago
Mark Paluch
7d6b5ae5fe
Upgrade to Maven Wrapper 3.8.2.
...
See #3818
4 years ago
Christoph Strobl
d70e459ffe
Upgrade to MongoDB Java Drivers 4.3.2
...
Closes : #3816
4 years ago
Mark Paluch
a26e780957
Reduce allocations in query and update mapping.
...
Introduce EmptyDocument and utility methods in BsonUtils. Avoid entrySet and iterator creation for document iterations/inspections.
Relates to: #3760
Original Pull Request: #3809
4 years ago
Mark Paluch
8fb0e1326b
Introduce `SessionSynchronization.NEVER` to disable transactional participation.
...
SessionSynchronization.NEVER bypasses all transactional integration in cases where applications do not want to make use of transactions so that transaction inspection overhead is avoided.
Closes : #3760
Original Pull Request: #3809
4 years ago
Christoph Strobl
9014f770d8
Fix slice argument in query fields projection.
...
We now use a Collection instead of an Array to pass on $slice projection values for offset and limit.
Closes : #3811
Original pull request: #3812 .
4 years ago
Christoph Strobl
f128e6df15
Fix `@DocumentReference` resolution for properties used in constructor.
...
This commit fixes an issue that prevented referenced entities from being used as constructor arguments.
Closes : #3806
Original pull request: #3810 .
4 years ago
Mark Paluch
270456ed81
Polishing.
...
Extract query that yields no hits into constant. Guard Map-typed reference properties against empty $or.
See #3805
Original pull request: #3807 .
4 years ago
Christoph Strobl
4e960a9682
Fix document reference on empty reference arrays.
...
This commit fixes an issue caused by empty reference arrays.
Closes #3805
Original pull request: #3807 .
4 years ago
Mark Paluch
061c28f84a
Polishing.
...
Add ticket reference to tests.
See #3803
4 years ago
Oliver Drotbohm
cba7eaba4c
Polishing.
...
Formatting and indentation in parent project's pom.xml.
See #3803
4 years ago
Oliver Drotbohm
ada7e199a4
Properly detect all supported identifier annotations as explicitly annotated.
...
We now simply delegate to AnnotationBasedPersistentProperty.isIdProperty() for the detection of annotated identifiers. The previous, manual identifier check was preventing additional identifier annotations, supported by ABP, to be considered, too.
Fixes #3803 .
4 years ago
Mark Paluch
977e5e4c5c
Polishing.
...
Tweak reference documentation wording. Extract self/target source dereferencing into utility methods.
See: #3798
Original pull request: #3802 .
4 years ago
Christoph Strobl
c8307d5a39
Allow one-to-many style lookups with via `@DocumentReference`.
...
This commit adds support for relational style One-To-Many references using a combination of ReadonlyProperty and @DocumentReference .
It allows to link types without explicitly storing the linking values within the document itself.
@Document
class Publisher {
@Id
ObjectId id;
// ...
@ReadOnlyProperty
@DocumentReference(lookup="{'publisherId':?#{#self._id} }")
List<Book> books;
}
Closes : #3798
Original pull request: #3802 .
4 years ago
Mark Paluch
dcf184888e
Polishing.
...
Add since and author tags. Update reference docs. Fix format of ticket references in tests.
See #3708
Original pull request: #3796 .
4 years ago
divyajnu08
59d0042d13
Add support for `$asin` and `$asinh` aggregation operators.
...
Closes #3708
Original pull request: #3796 .
4 years ago
Mark Paluch
8af904b81f
Polishing.
...
Add author and since tags. Tweak Javadoc format.
See #3709
Original pull request: #3794 .
4 years ago
divya srivastava
ffceed8da9
Add support for `$atan`, `$atan2` and `$atanh` aggregation operators.
...
Closes #3709
Original pull request: #3794 .
4 years ago
Mark Paluch
34d66a276a
Polishing.
...
Add license headers. Update Javadoc, author, and since tags. Add tests. Add toCriteriaDefinition method.
See #3790
4 years ago
divyajnu08
e71ec874ab
Add support for `$expr` operator.
...
Also, allow construction of $match with an AggregationExpression.
Closes #3790
4 years ago
Mark Paluch
f24e8e5361
Avoid nested Document conversion to primitive types for fields with an explicit write target.
...
We now no longer attempt to convert query Documents into primitive types to avoid e.g. Document to String conversion.
Closes : #3783
Original Pull Request: #3797
4 years ago
Christoph Strobl
bf86f39b2d
Fix id field target type conversion for document references.
...
This commit fixes an issue where a defined custom target type conversion for the id field was not properly considered when writing a document reference. Previously an eg. String was not being converted into an ObjectId correctly causing lookup queries to return empty results.
Converting the id property value on write solves the issue.
Includes a minor polish in the mapping centralizing pointer creation within the DocumentPointerFactory.
Closes : #3782
Original pull request: #3785 .
4 years ago
Mark Paluch
f662d7ca0d
Polishing.
...
Tweak Javadoc. Add since tag, reformat code. Simplify tests. Move documentation bits into the right place.
See #3726 .
Original pull request: #3765 .
4 years ago
James McNee
62eb719b1e
Add support for `$sampleRate` criteria.
...
Closes #3726
Original pull request: #3765 .
4 years ago
Mark Paluch
69b582823a
Polishing.
...
Add support for Pattern. Extract Regex flags translation from Criteria into RegexFlags utility class. Add since and author tags. Simplify tests. Update reference documentation.
See #3725 .
Original pull request: #3781 .
4 years ago
divya srivastava
297ef98239
Add support for `$regexFind`, `$regexFindAll`, and `$regexMatch` aggregation operators.
...
Closes #3725
Original pull request: #3781 .
4 years ago
Mark Paluch
f71f107445
Polishing.
...
Reorder methods. Add since tag. Simplify assertions. Use diamond syntax.
See: #3776
Original pull request: #3777 .
4 years ago
Ivan Volzhev
36e2d80d71
Relax requirement for GeoJsonMultiPoint construction allowing creation using a single point.
...
Only 1 point is required per GeoJson RFC and Mongo works just fine with 1 point as well.
Closes #3776
Original pull request: #3777 .
4 years ago
Mark Paluch
467536cb34
Polishing.
...
Update since version. Reformat code.
See: #3761 .
4 years ago
sangyongchoi
302c8031f9
Add Criteria infix functions for `maxDistance` and `minDistance`.
...
Closes : #3761
4 years ago
Mark Paluch
7c6e951c7c
Polishing.
...
Add author tags, tweak Javadoc style. Simplify tests. Document operator.
See #3724
Original pull request: #3759 .
4 years ago
Mushtaq Ahmed
92cc2a582a
Add support for `$rand` aggregation operator.
...
Closes #3724
Original pull request: #3759
4 years ago
Mark Paluch
24171b3ae2
Polishing.
...
Introduce factory methods to convert TimeZone/ZoneId/ZoneOffset into Mongo Timezone. Introduce TemporalUnit abstraction and converters to convert ChronoUnit and TimeUnit into TemporalUnit for date operators accepting a unit parameter.
See #3713
Original pull request: #3748 .
4 years ago
Christoph Strobl
456c1ad26a
Add shortcut for date aggregation operators working with timezone.
...
See: #3713
Original pull request: #3748 .
4 years ago
Christoph Strobl
fc41793d5d
Add support for `$dateDiff` aggregation operator.
...
Closes : #3713
Original pull request: #3748 .
4 years ago
Christoph Strobl
afef243634
Add support for `$dateAdd` aggregation operator.
...
Closes : #3713
Original pull request: #3748 .
4 years ago
Mark Paluch
869b88702d
Polishing.
...
Fix typo in reference docs.
See #3758
4 years ago
Ryan Gibb
aca403c112
Fix a typo in `MongoConverter` javadoc.
...
Original pull request: #3758 .
4 years ago
Mark Paluch
df0372eee1
Polishing.
...
Rename AngularDimension to AngularUnit. Tweak Javadoc. Simplify tests. Update reference docs.
See: #3710 , #3714 , #3728 , #3730
Original pull request: #3755 .
4 years ago
Christoph Strobl
c4c6267d91
Add support for `$cos` and `$cosh` aggregation operators.
...
Closes : #3710
Original pull request: #3755 .
4 years ago
Christoph Strobl
73d5886aae
Add support for `$tan` and `$tanh` aggregation operators.
...
Closes : #3730
Original pull request: #3755 .
4 years ago
Christoph Strobl
0db47169cf
Add support for `$sin` and `$sinh` aggregation operators.
...
Closes : #3728
Original pull request: #3755 .
4 years ago
Christoph Strobl
ec16b873b7
Add support for `$degreesToRadians` aggregation operator.
...
Closes : #3714
Original pull request: #3755 .
4 years ago
Mark Paluch
2a3a4cf030
Polishing.
...
Fix method order from earlier merges. Add missing Javadoc. Simplify tests. Update documentation.
See #3721
Original pull request: #3746 .
4 years ago
Christoph Strobl
df2b2a2f68
Add support for `$integral` aggregation operator.
...
Closes : #3721
Original pull request: #3746 .
4 years ago
Mark Paluch
fd0a402c99
Polishing.
...
See #3720
Original pull request: #3745 .
4 years ago
Christoph Strobl
6bd0f758fe
Extend support for `$ifNull` to cover multiple conditions.
...
Closes : #3720
Original pull request: #3745 .
4 years ago
Mark Paluch
10c0203605
Polishing.
...
Accept window units in addition to plain strings. Document operator.
See: #3716
Original pull request: #3742 .
4 years ago
Christoph Strobl
82b33331fc
Add support for `$derivative` aggregation operator.
...
Closes : #3716
Original pull request: #3742 .
4 years ago