apache / apache/grails-intellij-plugin
Grails 3: detached criteria AST transformation support
- Dominant language
- Java
- Stars
- 17
- Forks
- 4
- Avg merge
- 5d 15h
- Merged PRs (30d)
- 4
Description
Completion of fields, navigation, resolve.
Before Grails 3:
```
def query = Person.withCritera {
or {
and {
ne 'lastName', 'Simpson'
ne 'firstName', 'Fred'
}
and {
eq 'firstname', "Bart"
gt 'age', 9
}
}
}
```
Now it is possible to write as:
```
def query = Person.where {
(lastName != "Simpson" && firstName != "Fred") || (firstName == "Bart" && age > 9)
}
```
---
*Imported from [IDEA-145856](https://youtrack.jetbrains.com/issue/IDEA-145856) · Type: Bug · Votes: 2*
*Comments, attachments, dates and reporter are not part of the export — follow the link above for the full history.*
Contributor guide
No contributing guide indexed for this repository
Research direction
No source file or test is named. Start by locating the Grails 3 detached criteria AST transformation support and compare it with existing `where` support; verify completion, field navigation, and resolve for the example expressions when done.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy, java
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100