-
Notifications
You must be signed in to change notification settings - Fork 195
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
OR and AND in a query #507
Comments
so the question is (and I ask this of Spring Data as well) does that mean:
Or does it mean:
For me personally that method signature is ambiguous and could mean either hence why we (and GORM which Micronaut data is based on) don't support that. |
Neither of them, it will be (no parentheses):
And depends on database priority in precedence, it runs the query. For instance in SQL server,
|
seems a slippery slow but ok, the origins of this behaviour go back to GORM actually where we restricted the number of logical branches to avoid folks abusing finders and defining ridiculously long method names which become unreadable. |
I think limiting to 4 conditions should be fine for most cases, or if it is possible, be configurable. |
Not currently no, but we will consider it for a future release |
Hi,
I tried this combination with no success
findAllByWordContainsOrCommentContainsAndUser(x,x,y)
it shows me an error but as soon and I changed theAnd
toOr
; it works. But a combination ofOR
andAND
does not work together.I thought it is supporting what Spring Data support, but it seems it has some limitation as I could easily query like that in Spring Data.
Any help with this?
The text was updated successfully, but these errors were encountered: