have you spring cartridge users already experienced
this:

I'm invoking DAO entities from within a service, and
something I'm sure about is that *there IS a session*
since in my method, I've put a dummy
getHibernateTemplate().find(...) call... that works.

Now the following query:

from fractals.psychos.core.system.entity.AccessRights
accessrights WHERE name=:name AND global=1 AND
path='/' AND (accessrights.user.id=:userid OR
accessrights.group.id IN (:groupids))

generates the following error:
net.sf.hibernate.LazyInitializationException: Failed
to lazily initialize a collection - no session or
session was closed

ok, can you explain this? There IS a session,
otherwise my dummy find wouldn't have worked. The
session cannot disappear in the same method call, or
can it???

bernard


                
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to