The ibatis project has moved and been renamed.
It is no longer being maintained as an Apache project, but has moved
(along with the development team) here:
http://www.mybatis.org/
Please join us at the new location by joining the mailing list here:
http://groups.google.com/group/mybatis-user
I've never seen that one... but my guess is that somehow it's trying to
proxy a null instance. But there's a check for that... hmm..
I just refactored the lazy loading implementation quite significantly. Try
the trunk version.
Clinton
On Fri, Feb 12, 2010 at 6:36 AM, Eugenia Mastantuono
On Mon, Feb 1, 2010 at 11:25 PM, Clinton Begin clinton.be...@gmail.comwrote:
Yes, iBATIS allows lazy loading across connections.
Sweet.
This means that the Parent object and one of its associations were loaded in
different contexts and it's possible that their states are inconsistent.
Yes,
Yes, iBATIS allows lazy loading across connections.
Be warned though, we allow this, but it does create the potential for
inconsistent data. For example:
1. Parent object is loaded (complex associations and collections are not,
proxy stubs are put in their place).
2. Some of the related data is
Hi,
The major problem that was present in iBATIS 2 was that lazy loaded class where
not always of the right type.
For exemple, if I have multiple subclasses of a class.
Person
Employee inherits Person
Director inherits Employee
If I have an object Employee with a method getBoss() that returns
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.getName() will
prematurely load the boss. A priori, I would expect the proxy to be
smarter and only trigger the loading of boss if getBoss() was
effectively
for boss as soon as any 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
: 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.getName() will prematurely
load the boss. A priori, I would expect the proxy to be smarter and only
Carlos,
We implemented it this way to handle issues with circular
dependencies. Essentially, yes, all dependencies will be loaded if
you access any of them.
If your getName() getter method accessed the boss field internally,
it would fail.
Clinton
On Wed, Dec 16, 2009 at 10:16 AM, Carlos Pita
only when one of it's method is called.
If you program such a patch, I'm sure it will be appreciated.
Christian
-Original Message-
From: Carlos Pita [mailto:carlosjosep...@gmail.com]
Sent: Wednesday, December 16, 2009 2:00 PM
To: user-java@ibatis.apache.org
Subject: Re: Lazy loading
interesting!
Someone else here who can give more info on this possibility? Thanks, so far!
- original Nachricht
Betreff: RE: Lazy loading when having dynamic table names
Gesendet: Mo 04 Mai 2009 17:27:10 CEST
Von: meindertmeind...@eduflex.com
I don't have the answer, because I haven't
I don't have the answer, because I haven't had the issue,
but would it be possible to use token replacement like clinton described
last week?
I have no idea of you can replace the tokens runtime for the session
though...
select id=findOrders parameterClass=org.test.OrderSearchCriteria
Not that I am throwing stones, but you really should raise an issue about
this schema design. I perviously worked in a company that took this
approach in designing their data model. As you have already seen, this is
not an easy data model to work with for obvious reasons, but the greatest
Neither would I throw stones at anyone, but remember that dynamic table
identifiers can be an issue on some RDMS (for instance; Oracle table names
cannot exceed 30 characters).
This problem can easily be avoided with validation code, but in your case, I
would strongly advocate using the DBMS
Please post relevant SQLMap and net.bioclipse.structuredb.domain.Library
code. It's difficult to see what's going on without them.
Niels
From: Jonathan Alvarsson [mailto:[EMAIL PROTECTED]
Sent: dinsdag 2 oktober 2007 11:02
To: user-java@ibatis.apache.org
I will interpret this as You don't need interfaces for the proxying in lazy
loading to work and send some more info. Attached are a lot of files... :)
On 10/2/07, Niels Beekman [EMAIL PROTECTED] wrote:
Please post relevant SQLMap and
net.bioclipse.structuredb.domain.Librarycode. It's
, that shouldn't matter at all.
I'm afraid I can't help with this any further...
Niels
From: Jonathan Alvarsson [mailto:[EMAIL PROTECTED]
Sent: dinsdag 2 oktober 2007 12:21
To: user-java@ibatis.apache.org
Subject: Re: Lazy loading -- IllegalArgumentException
Sent: Thursday, May 24,
2007 10:25 PMTo: [EMAIL PROTECTED];
user-java@ibatis.apache.orgSubject: RE: Lazy Loading not
working
Yes I do. The interesting thing is that Lazy loading is
working on some of my other objects but not on this one.
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTE
Do you have cglib on your classpath?
Larry
On 5/24/07, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I've got one SQLMap for an object that has children. For some reason when I
execute a select and have properties of the result object perform selects to
retrieve the adjacent objects the lazy
Yeah In fact I think Set / SortedSet is more match to list for
relational model
On 1/9/07, Todorovich, Milo [EMAIL PROTECTED] wrote:
I have an bean that I'm trying to retrieve, and this bean has a collection
(java.util.Set) of other beans that I would like to lazily load. When I run
That's right. This should be written somewhere (like iBATIS wiki).
I've run into these 3 problems myself...
Christian
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 20 December 2006 01:43
To: user-java@ibatis.apache.org
Subject: RE: Lazy Loading
...
Christian
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 20 December 2006 01:43
To: user-java@ibatis.apache.org
Subject: RE: Lazy Loading
Thanks Paul this was very helpfull, this kind of explanation schould be in the
manual!
mvg,
Wouter Roose
tel.: 02
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Larry Meadors
Sent: Wednesday, 20 December 2006 11:10
To: user-java@ibatis.apache.org
Subject: Re: Lazy Loading
Yes, the WIKI would be a great spot for that!
It's even easily updated by anyone. *hint* *hint* *nudge
You need to set enhancementEnabled=true and have cglib in you classpath.
That will cause ibatis to use EnhancedLazyResultLoader.
There is still some issues with 1:1 enhanced lazy loading.
1) If you use the discriminator tag to return 1:1 lazy loaded sub classes
then you will not be able to
@ibatis.apache.org
20/12/2006 02:04 cc
Subject
Please respond to RE: Lazy Loading
On Sep 27, 2006, at 1:41 AM, Niels Beekman wrote:
Can we see your config?
What all would you like to see? It's a large application and the
example I posted is just a snippet. Here's more from my sql config
and dao config:
sqlMapConfig
properties
]
Sent: Wednesday, 27 September 2006 09:25
To: user-java@ibatis.apache.org
Subject: Re: lazy loading confusion
On Sep 27, 2006, at 1:41 AM, Niels Beekman wrote:
Can we see your config?
What all would you like to see? It's a large application and the
example I posted is just a snippet. Here's
2006 09:25
To: user-java@ibatis.apache.org
Subject: Re: lazy loading confusion
On Sep 27, 2006, at 1:41 AM, Niels Beekman wrote:
Can we see your config?
What all would you like to see? It's a large application and the
example I posted is just a snippet. Here's more from my sql config
This is possible.
Try to turn on enhancement (also add needed jar) for lazy loading and
see what happens.
Christian
-Original Message-
From: Tom Duffey [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 27 September 2006 10:34
To: user-java@ibatis.apache.org
Subject: Re: lazy loading confusion
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, 27 September 2006 10:34
To: user-java@ibatis.apache.org
Subject: Re: lazy loading confusion
On Sep 27, 2006, at 9:28 AM, Poitras Christian wrote:
Maybe your application is accessing the members property when the
object is populating.
Try to turn on logging
[mailto:
[EMAIL PROTECTED]] Sent: Wednesday, 27 September 2006 10:34 To: user-java@ibatis.apache.org Subject: Re: lazy loading confusion
On Sep 27, 2006, at 9:28 AM, Poitras Christian wrote: Maybe your application is accessing the members property when the object is populating. Try to turn
, then maybe it is the Spring configuration that is problematic.
Christian
-Original Message-
From: Tom Duffey [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 27 September 2006 10:44
To: user-java@ibatis.apache.org
Subject: Re: lazy loading confusion
On Sep 27, 2006, at 9:40 AM, Poitras Christian
AIL PROTECTED]] Sent: Wednesday, 27 September 2006 10:34 To: user-java@ibatis.apache.org Subject: Re: lazy loading confusion On Sep 27, 2006, at 9:28 AM, Poitras Christian wrote: Maybe your application is accessing the "members" property when the object is populating. Try to turn on logging a
From: "Poitras Christian"
[EMAIL PROTECTED] [mailto:"Poitras Christian"
[EMAIL PROTECTED]] Sent: Wednesday, September 27,
2006 7:55 AMTo:
user-java@ibatis.apache.orgSubject: RE: lazy loading
confusion
Hum... The requirements indicates that CGLIB 2.0 should be used. But
I doubt
10:34 To: user-java@ibatis.apache.org Subject: Re: lazy loading confusion On Sep 27, 2006, at 9:28 AM, Poitras Christian wrote: Maybe your application is accessing the "members" property when the object is populating. Try to turn on logging and see what happens. Add a log statement in your "
nesday, 27 September 2006 11:36To:
user-java@ibatis.apache.orgSubject: Re: lazy loading
confusion
On Sep 27, 2006, at 10:00 AM, Tom Duffey wrote:
On Sep 27, 2006, at 9:51 AM, Jeff Butler wrote:
Try explicitly enabling lazy loading:
settings enhancementEnabled="true
] (User is one of my classes) and List.Tom From: Tom Duffey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 27 September 2006 11:36To: user-java@ibatis.apache.orgSubject: Re: lazy loading confusion On Sep 27, 2006, at 10:00 AM, Tom Duffey wrote: On Sep 27, 2006, at 9:51 AM, Jeff Butler wrote:
I'm quite sure that User[] is final and cannot be lazy
loaded.
But I am surprised that List doesn't
work.
Is your User class final?
Christian
From: Tom Duffey [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 27 September 2006 12:17To:
user-java@ibatis.apache.orgSubject: Re: lazy loading
y mode. I tried User[] (User is one of my classes) and List. TomFrom: Tom Duffey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 27 September 2006 11:36To: user-java@ibatis.apache.orgSubject: Re: lazy loading confusion On Sep 27, 2006, at 10:00 AM, Tom Duffey wrote: On Sep 27, 20
Oups. Forgot to tell you to change User[] to List prior to
posting logssince I doubt User[] can be overiden.
Christian
From: Poitras Christian
[mailto:[EMAIL PROTECTED] Sent: Wednesday, 27 September
2006 13:06To: user-java@ibatis.apache.orgSubject: RE: lazy
loading confusion
I can't see
Message-
From: Dodo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 14 June 2006 12:32
To: user-java@ibatis.apache.org
Subject: Re: lazy loading
Hi X,
That's not really lazy loading, it's dynamic conditional loading but I
guess it will do for the same thing.
According to page 7 and 9 of the same
Christian [EMAIL PROTECTED]
To: user-java@ibatis.apache.org
Sent: Friday, June 16, 2006 2:36 AM
Subject: RE: lazy loading
My answer may not be complete. But I will give you an idea.
If you enable lazy loading, the object that is loaded will be populated
normaly.
For all properties
saving!
Christian
-Original Message-
From: Dodo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 14 June 2006 12:32
To: user-java@ibatis.apache.org
Subject: Re: lazy loading
Cool, Poitras,
Just some clarification.
So if I retrieve a Category object that has an ArrayList of 1 million
Item
hi there, i just had the same problem and i found it in the tutorial at:
http://people.apache.org/dist/ibatis/ibatis.java/docs/iBATIS-SqlMaps-2.pdf
page 36
hope this helps
--
View this message in context:
http://www.nabble.com/lazy-loading-t1789831.html#a4876489
Sent from the iBATIS - User -
PM
Subject: Re: lazy loading
hi there, i just had the same problem and i found it in the tutorial at:
http://people.apache.org/dist/ibatis/ibatis.java/docs/iBATIS-SqlMaps-2.pdf
page 36
hope this helps
--
View this message in context:
http://www.nabble.com/lazy-loading-t1789831.html#a4876489
Hi,
Are you using CGLIB? If not, iBATIS uses the Java
Proxy/Invocationhandler, which only handles interfaces. Somebody please
correct me if I'm wrong. If you look into EnhancedLazyResultLoader
you'll see that it does not only wrap instances of Collection.
Hope this clarifies something,
Niels
46 matches
Mail list logo