Skip to content
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

Add support for CriteriaGroups #434

Merged
merged 18 commits into from Jan 12, 2022
Merged

Conversation

jeffgbutler
Copy link
Member

This enhancement allows more flexible where clauses. We now support grouping criteria at the beginning of a where clause, or at the beginning of an and/or condition. So it is now possible to write where clauses like the following:

  where (a < 5 and B = 3) and ((C = 4 or D = 5) and E = 6)

Thanks to @JoshuaJeme for reporting this missing function, and for an initial idea of how to implement it.

Resolves #430

@jeffgbutler jeffgbutler added this to the 1.4.0 milestone Jan 12, 2022
@coveralls
Copy link

coveralls commented Jan 12, 2022

Coverage Status

Coverage remained the same at 100.0% when pulling 9fda0e4 on jeffgbutler:gh-430 into 9e70008 on mybatis:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need a convenience method to add group of SqlCriterion directly
2 participants