Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Grails domain classes not recognized when the domain class is in Java

$
0
0

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.


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>