> For me, I *really* started to enjoy Hibernate only after I switching to
> the long session pattern.

Than you could've enjoyed Cayenne from day one, as this is how it works
out of the box ;-)

Andrus



> I never detach the object from the session - so the sequence is like
> this (starting with a fresh session):
>
>    1. Request: -make new Hibernate session
>                -get all X from Database,
>                -render list of X
>                -disconnect hib-session from DB and store it in
> http-Session
> (X's are NOT detached here).
>
>     2. Request - lookup user's http session, get his hib-session
>                - reconnect hib-session to Datasource
>                - load collection X.allMyYs for some X lazily (no
> Problem,
> the X's are still attached)
>                  - render allMyYs
>                  - as 1. Request
>
> For me, I *really* started to enjoy Hibernate only after I switching to
> the long session pattern.
>
> Marcus
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to