Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.2 final
-
Fix Version/s: 1.2.1
-
Component/s: Persistence, TagLib
-
Labels:None
Description
In my domain class I have a method like:
def vicinity( params ){
DomainClazz.executeQuery( "select a, sqrt(...) from ....", params ).collect{ e ->
e[ 0 ].mainParent.name // << here the LIE is thrown!
e[ 0 ]
}
}
Sometimes, the lazy-init-exc is thrown, meaning, that only executeQuery() runs in it's own TX, but not collect() closure and the whole method.
The same goes also for TagLibs
Taglibs and domain class methods are not supposed to be transactional by default.