grails « Fetch « JPA Q&A





1. Grails eager fetch doesn't retrieve all data    stackoverflow.com

I have the domain classes:

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

2. Size of assosiation in Hibernate criteria    stackoverflow.com

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

def visitors = Client.withCriteria{
          visits{
     ...

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

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.