apache / apache/grails-intellij-plugin

Grails domain classes not recognized

Open
#243 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

Grails allows to declare the domain classes in Java which allows using those entity classes with Java code.
See section 16.2 of [http://grails.org/doc/latest/guide/hibernate.html](http://grails.org/doc/latest/guide/hibernate.html)

When doing so, IntelliJ does not recognize those classes as GORM domain classes.
For example, when you type "employee.save()" the save() method is underlined.
Also the method completion for GORM API does not work (especially for the dynamic finders).
When typing Employee.findAllBy| followed by Ctrl+Space does not show the methods available.

---

*Imported from [IDEA-151113](https://youtrack.jetbrains.com/issue/IDEA-151113) · 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 issue with a Grails domain class declared in Java. Check why IntelliJ does not recognize employee.save() or offer completion for Employee.findAllBy, then verify that GORM methods and dynamic finders are recognized and suggested.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.