How to search an inner class?
Posted
by Neoryder
on Stack Overflow
See other posts from Stack Overflow
or by Neoryder
Published on 2010-03-17T13:40:41Z
Indexed on
2010/03/17
20:21 UTC
Read the original article
Hit count: 318
I have these classes.
class Author{
Person person
}
class Person{
String lastName
String firstName
String middleName
}
I'd like to query Person and Author.
def persons = Person.findAllByLastNameiLike("${a}")
but it seems I can't do
def authors = Author.findAllByPerson(persons)
Any ideas how I'd do this?
© Stack Overflow or respective owner