RE: Lazy loading differences between ibatis 2 and 3

2009-12-16 Thread Poitras Christian
carlosjosep...@gmail.com] > Sent: Wednesday, December 16, 2009 12:16 PM > To: user-java@ibatis.apache.org > Subject: Re: Lazy loading differences between ibatis 2 and 3 > > Hi Christian, > > I understand your point but I don't get its relation to my question at all. > Continuing yo

Re: Lazy loading differences between ibatis 2 and 3

2009-12-16 Thread Clinton Begin
gt; In iBATIS 3, testing (employee.getBoss() instanceof Director) will be true >> if the employee's boss is a Director. To know the real type, the statement >> must be executed. >> >> Christian >> >> >> -Original Message----- >> From: Carlos Pita

Re: Lazy loading differences between ibatis 2 and 3

2009-12-16 Thread Carlos Pita
ber 16, 2009 12:16 PM > To: user-java@ibatis.apache.org > Subject: Re: Lazy loading differences between ibatis 2 and 3 > > Hi Christian, > > I understand your point but I don't get its relation to my question at all. > Continuing your example, I would ask why employee.g

RE: Lazy loading differences between ibatis 2 and 3

2009-12-16 Thread Poitras Christian
method on Employee is called. Christian -Original Message- From: Carlos Pita [mailto:carlosjosep...@gmail.com] Sent: Wednesday, December 16, 2009 12:16 PM To: user-java@ibatis.apache.org Subject: Re: Lazy loading differences between ibatis 2 and 3 Hi Christian, I understand your point

Re: Lazy loading differences between ibatis 2 and 3

2009-12-16 Thread Carlos Pita
eal type, the statement must > be executed. > > Christian > > > -Original Message- > From: Carlos Pita [mailto:carlosjosep...@gmail.com] > Sent: Wednesday, December 16, 2009 11:45 AM > To: user-java@ibatis.apache.org > Subject: Lazy loading differences between ibatis 2 a

RE: Lazy loading differences between ibatis 2 and 3

2009-12-16 Thread Poitras Christian
AM To: user-java@ibatis.apache.org Subject: Lazy loading differences between ibatis 2 and 3 Hi all, I've the following sqlmap for ibatis 2. Suppose ibatis has its lazy-loading feature enabled and I obtain a user U by means of findUserById. Then I call U.getEmail() and findMemberById is no

Lazy loading differences between ibatis 2 and 3

2009-12-16 Thread Carlos Pita
Hi all, I've the following sqlmap for ibatis 2. Suppose ibatis has its lazy-loading feature enabled and I obtain a user U by means of findUserById. Then I call U.getEmail() and findMemberById is not executed. That's fine, one wouldn't expect the associated member to be loaded until there is a real