I am getting a hibernate exception for the following query:
return criteria.listDistinct {
and {
or {
eq('openHut', true)
users {
users {
eq('userId', p.userId)
}
}
owner {
eq('userId', p.userId)
}
}
owner {
eq('id', Long.valueOf(hutgroup))
}
}
}
The exception I get is
org.codehaus.groovy.runtime.InvokerInvocationException:
org.hibernate.QueryException: duplicate alias: owner_alias0
I turned hibernate="off" to hibernate="debug" in Config - but -
although all previous SQL's were logged - the problem one was not.
I believe (but can't confirm from this machine) that this was working
fine in 1.0.1 (can check this evening).
Any suggestions as to 1) how to get the query to log or 2) how to
avoid the duplicate alias would be appreciated :)
--
Chris
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email