groovy « Criteria « JPA Q&A

1. Hibernate Criteria Question

I'm working on a Grails project using Hibernate (GORM). I have the following Domain Models

    static hasMany = [owners: Person]
    static belongsTo = [Person]


2. How to log in HibernateCriteriaBuilder

I try log some details in a namedQuery for a grails domain class but logging errors.

static namedQueries = {
  firstThree {
    if (booleanValue) {