ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brandon Goodin <brandon.goo...@gmail.com>
Subject Re: Lazy loading and transactions
Date Mon, 09 Jan 2006 14:48:10 GMT
It checks to see if an existing transaction has been started. If the
transaction has been started it uses the existing. Otherwise, it will
create one.

Brandon

On 1/9/06, Nils Winkler <nils@nilswinkler.com> wrote:
> Hi,
>
> I'm currently reading up on lazy loading since we're thinking about
> using it in our application - our app is based on Spring and uses iBATIS
> for persistence.
>
> How does iBATIS handle lazy loading with regard to transactions? We're
> using Spring's declarative transaction management through AOP, does lazy
> loading participate in a running transaction, or does it open a separate
> transaction? What happens when data is read in transaction, the
> transaction is finished and now the app is accessing the "lazy"
> relationship on the read object?
>
> I would appreciate some answers, both the PDF and the Wiki didn't
> provide any clues...
>
> Thanks,
>
> Nils
> --
> ==================================
> nils@nilswinkler.com
>
>

Mime
View raw message