apache / apache/grails-intellij-plugin

Grails: Criteria builder: Support relations in projections {} section

Open
#100 0 comments 0 reactions 0 assignees View on GitHub
bug imported-from-youtrack
Dominant language
Java
Stars
17
Forks
4
Avg merge
5d 15h
Merged PRs (30d)
4

Description

Excample:
```
class Author {
String name

static hasMany = [books: Book]
}

class Book {
static belongsTo = [author: Author]
}

def c = Book.createCritetia()
c {
author {
like('name', '%Ivan%')
}
projections {
author {
distinct('name')
order('name')
}
}
}
```

---

*Imported from [IDEA-79658](https://youtrack.jetbrains.com/issue/IDEA-79658) · 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 by reproducing the Author and Book example in the issue and trace the Criteria builder's projection handling for nested relations. The work is done when the nested author projection supports distinct('name') and order('name') without errors, while the existing relation filter continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, java
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.