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
When doing so, IntelliJ does not recognize those classes as GORM domain clases.
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.
I was wondering if there is a trick that would make IntelliJ recognize those classes as GORM domain classes.
A test project is attached.
Using IntelliJ 11.1.5, Grails 2.2.1.