Assume I have the following classes
class Genre {
static hasMany=[author:Author]
}
class Author{
static hasMany=[books:Books]
}
class Books{
Author author
}
How do I go about printing this in the gsp using g:each tag?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to display all books by author you could have something like
Cheers!