grails « Fetch « JPA Q&A

1. Grails eager fetch doesn't retrieve all data

I have the domain classes:

class Person {
    static hasMany = [ items: Item ]
    static fetchMode = [ items: 'eager'  ]

2. Size of assosiation in Hibernate criteria

I've faced with a problem when querying with Hibernate Criteria in Grails. Take a look:

def visitors = Client.withCriteria{

3. How to retrieve a column value using hibernate hql in grails

I have table user(id,name,address) and User domain class.i want to get only the name of the user for the condition id=3.can i do with the findAll method.