apache / apache/grails-intellij-plugin

domain properties not recognized inside grails gorm where clause

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

Description

In 2016.2.2 with Grails 2.5.5, the where method is recognized. However, no domain properties are recognized within the where closure. They are all underlined with error, "Cannot resolve symbol myDomainProperty". If I use findAllWhere(), then the domain properties are recognized by intellij. However, findAllWhere() does not support my query buildling requirements.

[http://docs.grails.org/2.5.5/ref/Domain%20Classes/where.html](http://docs.grails.org/2.5.5/ref/Domain%20Classes/where.html)

---

*Imported from [IDEA-160166](https://youtrack.jetbrains.com/issue/IDEA-160166) · Type: Feature · 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

Reproduce the unresolved domain properties in a Grails 2.5.5 project using IntelliJ IDEA 2016.2.2, comparing the where closure with findAllWhere(). Trace the Grails GORM where-clause support and determine where property resolution is handled; done means valid domain properties are no longer underlined inside the where closure.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.