History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GRAILS-2140
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Graeme Rocher
Reporter: Berthold Reif
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Grails

Scaffolding creates No link for adding an associated Object in a one to many reletionship if the Domain class is a child class

Created: 04/Jan/08 05:24 PM   Updated: 04/Jan/08 05:24 PM
Component/s: Scaffolding
Affects Version/s: 1.0-RC3
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive testchildassoc.zip (258 kb)


Testcase included: yes


 Description  « Hide
Assume we have a parent class and a child class each in a one to many releationship with the classes ParentAssoc and ChildAssoc as follows:

class Parent {
def hasMany = [parentAssoc:ParentAssoc]
static mappedBy = [parentAssoc:"parent"]
}

class ParentAssoc {
Parent parent
String paProp
def belongsTo = Parent
}

class Child extends Parent {
def hasMany = [childAssoc:ChildAssoc]
static mappedBy = [childAssoc:"child"]
}

class ChildAssoc {
Child child
String caProp
def belongsTo = Child
}

After running create-all for all these domain classes, the resulting edit view for the domain class child has a link for adding a ParentAssoc but no link for adding a ChildAssoc.

I have isolated this problem and put into a webtest.
(Webtest plugin stripped from zipfile)



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.