Hibernate version:3.1.3
<bag name="thingy" table="obj_with_thingy" lazy="true"> <!-- <cache usage="nonstrict-read-write"/> --> <key column="DOM_ID" /> <one-to-many class="com.comp.objsInThingy" /> </bag>
remove all call procedure to reduce to only hibernate calls
hivetranse Object o = _session.get(Thingy.class, thingyId); hivetranse
hivetranse Collection objs = ((Thingy) o).getObjs(); // failure append here objs.iterator;
hivetranse
failed to lazily initialize a collection of role: com.comp.Thingy.objs, no session or session was closed
The session used is the same - hivetranse does not affect session or transaction.
the transaction does not seam to be closed.
then why do I need a merge to execute this.
(or disable the lazy of course)
so strange.
if someone has any idea. tks.
|