Thanks,

I do not want to have to change the actual POJOs as I generate them using
reverse eng so I think I will just do the lookup.\

Just making sure I was not doing something wrong:)

--James

-----Original Message-----
From: Sven Homburg [mailto:hombu...@googlemail.com] 
Sent: February-05-09 2:23 PM
To: Tapestry users
Subject: Re: T5: Hibernate/Session question

there are two possible solutions:

first: you declare the collection for childobjects "read not lazy"

second: you attach the parentobject to a new session and re-read the
childobjects collection


2009/2/5 James Sherwood <jsherw...@rgisolutions.com>

> Hello,
>
>
>
> I have an application state object(Visit) that is storing a hibernate
> entity
> object.
>
>
>
> In a page I ask for the visit.object.getchildobject.name and receive this
> error:
>
>
>
> [ERROR] hibernate.LazyInitializationException could not initialize proxy -
> the owning Session was closed
>
> org.hibernate.LazyInitializationException: could not initialize proxy -
the
> owning Session was closed
>
>
>
>
>
> Can I not do this from application state objects?
>
>
>
> Thanks,
>
> --James
>
>
>
>


-- 
with regards
Sven Homburg
http://www.chenillekit.org
http://tapestry5-components.googlecode.com


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to