Skip to content

Implement visitBooleanExpressionPredicate #91

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

Merged
merged 16 commits into from
May 5, 2025

Conversation

NathanQingyangXu
Copy link
Contributor

@NathanQingyangXu NathanQingyangXu requested a review from jyemin April 23, 2025 22:56
@katcharov katcharov requested review from vbabanin and removed request for jyemin April 24, 2025 00:27
@ExtendWith(MongoExtension.class)
abstract class AbstractSelectionQueryIntegrationTests implements SessionFactoryScopeAware, ServiceRegistryScopeAware {

SessionFactoryScope sessionFactoryScope;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
SessionFactoryScope sessionFactoryScope;
protected SessionFactoryScope sessionFactoryScope;

Copy link
Member

@stIncMale stIncMale Apr 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

protected is more permissive than package-access, and making program elements more accessible than needed is something that we agreed not to do. Does this field and testCommandListener have to be protected?

Copy link
Contributor Author

@NathanQingyangXu NathanQingyangXu May 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, from visibility perspective, protected is not mandatory; but it is also a good practice to use protected on abstract class to denote it is accessible to any child class, regardless of whether the child class resides in the same package or not. it is more about semantic connotation.

For that reason, I want to follow @vbabanin's suggestions.

Copy link
Member

@vbabanin vbabanin May 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I initially assumed this class might be reused across packages. However, if it’s meant to be used only within the same package and based on the earlier discussions - package-private should be more appropriate.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I switched to package-private for the following two methods:

    SessionFactoryScope getSessionFactoryScope() {
        return sessionFactoryScope;
    }

    TestCommandListener getTestCommandListener() {
        return testCommandListener;
    }

@NathanQingyangXu NathanQingyangXu requested a review from stIncMale May 2, 2025 19:51
@NathanQingyangXu
Copy link
Contributor Author

@vbabanin , I completed the assertion overloaded methods without null query post processor at b420a2d

@NathanQingyangXu NathanQingyangXu requested a review from vbabanin May 2, 2025 20:00
NathanQingyangXu and others added 4 commits May 5, 2025 10:07
…stractSelectionQueryIntegrationTests.java

Co-authored-by: Viacheslav Babanin <[email protected]>
…stractSelectionQueryIntegrationTests.java

Co-authored-by: Viacheslav Babanin <[email protected]>
…ss methods in AbstractSelectionQueryIntegrationTests
vbabanin
vbabanin previously approved these changes May 5, 2025
Copy link
Member

@vbabanin vbabanin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@NathanQingyangXu NathanQingyangXu requested a review from vbabanin May 5, 2025 18:03
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.

Skimmed through, did not review.

@NathanQingyangXu NathanQingyangXu merged commit 0d01b01 into mongodb:main May 5, 2025
6 checks passed
@NathanQingyangXu NathanQingyangXu deleted the HIBERNATE-78-new branch May 5, 2025 21:38
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.

3 participants