apache / apache/grails-intellij-plugin
Grails: Resolving of to-one relation inside criteria builder closure
- Dominant language
- Java
- Stars
- 17
- Forks
- 4
- Avg merge
- 5d 15h
- Merged PRs (30d)
- 4
Description
Example
```
class Author {
String name
static hasMany = [books: Book]
}
class Book {
static belongsTo = [author: Author]
}
def c = Book.createCritetia()
c {
author {
like('name', '%Pushkin%')
}
}
```
---
*Imported from [IDEA-79657](https://youtrack.jetbrains.com/issue/IDEA-79657) · Type: Bug · Votes: 0*
*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
Start with the criteria builder closure shown in the issue and trace how the plugin resolves the nested author relation and like('name', ...) call. Done means the example resolves the to-one relation inside the closure without an unresolved-reference error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100