I have a domain
Author{
String name
String AuthorId
hasMany = [books:Book]
}
and
Book{
String title
String publisher
belongsTo = [author:Author]
}
The only input I can have is AuthorId. With the use of this value how to obtain the records for domain Book using HibernetCriteriaBuilder eq(propertyName, propertyValue)
Thank you!!!