Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
dynamic query restrictions #895
dynamic query restrictions #895
Changes from 1 commit
d41c721
ef9e462
8ba74d5
9a72101
2b8a88c
3867d24
35dc014
1afe5f7
2b2ab75
18c00b3
2f578c5
13640fd
d2f0fe0
6cee833
c047e0f
e2f899e
af29f92
8a93a8a
c6f835e
711497c
a8707ca
8bef07a
305a552
4fb6854
a93f6e9
7784d3b
8e9720e
6804be2
a87a71f
8d01623
a780900
ac428fa
6bff08d
822de0f
014fd07
1e70a1a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
It is not clear that
not
means,notEquals´. Please either, use
neor
NotEquals`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.
Sure, I can update that. Given that we have a
equalTo
method, the equivalent here will benotEqualTo
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.
Can we remove all of those
no
method factory sequences?It would be great if we have only two options: by the method instead
negate
and a single method factorynot
.It is pretty similar to the Java
Predicate
: https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/function/Predicate.htmlThere 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.
@otaviojava JDQL has operators like
not between
,not like
, etc, so it makes sense to me for such things to be reflected here. And it's significantly less verbose.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.
I agree with Gavin on this.
Being able to write code such as,
is much more straightforward and readable than
or
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.
Please remove this one from the inner class; it is good, mainly for the Javadoc.
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.
I suppose I could move it to a top level class, although note that it currently is not something that applications use. Its current purpose is for Jakarta Data providers to know which type of restriction it is, so I had intentionally made in an inner class to keep it more out of the way of application developers. If you are looking ahead to the possibility of reusing it for an
@Is
annotation, then it would become something that is directly used by applications.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.
That is what I do have on my mind.