groovy « Criteria « JPA Q&A





1. Hibernate Criteria Question    stackoverflow.com

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

ClientContact{
    static hasMany = [owners: Person]
    static belongsTo = [Person]
}

Person{
 ...

2. How to log in HibernateCriteriaBuilder    stackoverflow.com

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

static namedQueries = {
  firstThree {
    if (booleanValue) {
    ...