Skip to content

allow to customize json search function #188

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

fekynko
Copy link
Contributor

@fekynko fekynko commented Aug 12, 2025

Resolves #187

Comment on lines 33 to 42
/**
* Postgresql {@code jsonb_path_exists} function to use
*/
public static String JSONB_PATH_EXISTS = "jsonb_path_exists";

/**
* Postgresql {@code jsonb_path_exists_tz} function to use
*/
public static String JSONB_PATH_EXISTS_TZ = "jsonb_path_exists_tz";

Copy link
Collaborator

Choose a reason for hiding this comment

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

Hi. This code essentially introduces global mutable variables which is well known anti-pattern.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

well, whole jsonb support is based on static methods so i didnt seen any other way to make fields accessible. i used same "pattern" as for enabling date time support.

Copy link
Collaborator

@nstdio nstdio Aug 19, 2025

Choose a reason for hiding this comment

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

I'm sure there are other ways to achieve this. Yeah, configuring date time support in this way was a quite a mistake I must say.

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 moved configuration to QuerySupport

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.

allow to customize json search function
2 participants