File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Groovy way to Show field of domain in hasMany relationship

 
Ramneek Singal
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everybody,

i have two domains x and y where x has hasMany mapping to y.
x domain has fields String ab and String bc.
y domain has fields String cd and BigDecimal ef. And the toString() method i am returning the id field of the domain.

Now i would like to show to the user on the gsp page the field ef of y domain, how i can achieve this. I am trying the below code but i am unable to get the value of field ef whereas i am successfully able to show the value of the field cd.



How can i display ef value? and not the value returned by toString.

Thanks!

 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic