Skip to content

Conversation

@vbabanin
Copy link
Member

@vbabanin vbabanin commented Oct 17, 2025

# Conflicts:
#	src/integrationTest/java/com/mongodb/hibernate/query/mutation/UpdatingIntegrationTests.java
@vbabanin vbabanin requested a review from a team as a code owner October 17, 2025 19:44
@vbabanin vbabanin requested review from rozza and removed request for a team October 17, 2025 19:44
@vbabanin vbabanin changed the title Hibernate 130 Add support for delete and update operations without filters Oct 17, 2025
@vbabanin vbabanin requested review from stIncMale and removed request for rozza October 17, 2025 19:45
}

private AstFilter getKeyFilter(AbstractRestrictedTableMutation<? extends MutationOperation> tableMutation) {
private AstFilter createKeyFilter(AbstractRestrictedTableMutation<? extends MutationOperation> tableMutation) {
Copy link
Member Author

@vbabanin vbabanin Oct 17, 2025

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.

@vbabanin vbabanin self-assigned this Oct 17, 2025
@vbabanin vbabanin marked this pull request as draft October 17, 2025 19:51
HIBERNATE-130
@vbabanin vbabanin marked this pull request as ready for review October 17, 2025 20:06
@vbabanin vbabanin requested a review from stIncMale October 21, 2025 21:20
Copy link
Member

@stIncMale stIncMale left a 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.

…t/filter/AstEmptyFilterTest.java

Co-authored-by: Valentin Kovalenko <valentin.male.kovalenko@gmail.com>
@vbabanin vbabanin requested a review from stIncMale October 22, 2025 19:54
@vbabanin vbabanin merged commit 6910923 into mongodb:main Oct 22, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants