Hi

I have 3 domain classes.

class A{
String a
}
class B
{
String b
}
class C{
A aa
B bb
}

I have added search feauture in Class C. When I am doing search, I am getting problem in list.gsp of domain class C
like
B doesn't have property a
A doesn't have property b


any one could help?