This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Groovy and the fly likes Groovy way to Show field of domain in hasMany relationship Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Groovy way to Show field of domain in hasMany relationship" Watch "Groovy way to Show field of domain in hasMany relationship" New topic
Author

Groovy way to Show field of domain in hasMany relationship

Ramneek Singal
Greenhorn

Joined: Nov 20, 2013
Posts: 6
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!

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Groovy way to Show field of domain in hasMany relationship
 
Similar Threads
Get the characters from String.
Saving object having many-to-many relationship in grails
How to make Date Immutable
return?
Multipart request problem