This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 257938 - Grails dynamic method auto complete does not work for related entities
Summary: Grails dynamic method auto complete does not work for related entities
Status: NEW
Alias: None
Product: groovy
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: bruno.flavio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-11 09:26 UTC by ejaz_ahmed
Modified: 2016-08-07 05:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ejaz_ahmed 2016-02-11 09:26:47 UTC
Grails provide dynamic finders for class attributes as well as related entities. If a domain class phone is defined like this:

class Phone {

    String name
    String description
    static hasMany = [variations: Variation]
    static belongsTo = [manufacturer:Manufacturer]

    static constraints = {
        description nullable: true
    }
}

Then grails provide dynamic finders for phone object like:

phone.findByVariations() and phone.findByManufacturer. Netbeans provide dynamic finders auto complete for phone attributes like name and description in above example but not for manufacturer and variation.

Similarly grails provide dynamic methods for phone object to add and remove related entities like phone.addToVariations(Variations obj) and phone.removeFromVariations(Variations obj). Similar is the case for manufacturer too.
Comment 1 bht 2016-08-07 05:01:58 UTC
Hi,

I am a NetBeans user not a developer.

With the provided description, the issue does not seem to fit within priority 1 as described at

http://wiki.netbeans.org/BugPriorityGuidelines

I hope that adding the required files and upgrading the description will speed up the resolution of the issue.