-
Notifications
You must be signed in to change notification settings - Fork 13
Add support for delete and update operations without filters #135
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
# Conflicts: # src/integrationTest/java/com/mongodb/hibernate/query/mutation/UpdatingIntegrationTests.java
| } | ||
|
|
||
| private AstFilter getKeyFilter(AbstractRestrictedTableMutation<? extends MutationOperation> tableMutation) { | ||
| private AstFilter createKeyFilter(AbstractRestrictedTableMutation<? extends MutationOperation> tableMutation) { |
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.
We have several helper methods for creating Mongo AST elements:
getAstComparisonFilterOperator, getKeyFilter, createMatchStage, createSortStage, createProjectStage, createAstSortField.
Their naming pattern is inconsistent - some use get, others create.
To make them consistent and clearer in intent, we could use a common prefix, and create i think better reflects their behavior.
This PR also adds createAstFilter following that convention.
HIBERNATE-130
src/main/java/com/mongodb/hibernate/internal/translate/mongoast/filter/AstEmptyFilter.java
Outdated
Show resolved
Hide resolved
src/test/java/com/mongodb/hibernate/internal/translate/mongoast/filter/AstEmptyFilterTest.java
Show resolved
Hide resolved
src/main/java/com/mongodb/hibernate/internal/translate/AbstractMqlTranslator.java
Outdated
Show resolved
Hide resolved
src/integrationTest/java/com/mongodb/hibernate/query/AbstractQueryIntegrationTests.java
Outdated
Show resolved
Hide resolved
src/integrationTest/java/com/mongodb/hibernate/query/mutation/UpdatingIntegrationTests.java
Outdated
Show resolved
Hide resolved
…tMqlTranslator.java Co-authored-by: Valentin Kovalenko <valentin.male.kovalenko@gmail.com>
stIncMale
left a comment
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.
The last reviewed commit is 452e81c.
src/test/java/com/mongodb/hibernate/internal/translate/mongoast/filter/AstEmptyFilterTest.java
Outdated
Show resolved
Hide resolved
…t/filter/AstEmptyFilterTest.java Co-authored-by: Valentin Kovalenko <valentin.male.kovalenko@gmail.com>
HIBERNATE-130