Re: Lazy Loading per ResultMap

2010-06-17 Thread Larry Meadors
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

Re: Lazy Loading cglib error

2010-02-12 Thread Clinton Begin
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

Re: Lazy loading

2010-02-02 Thread Daryl Stultz
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,

Re: Lazy loading

2010-02-01 Thread Clinton Begin
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

RE: Lazy loading differences between ibatis 2 and 3

2009-12-16 Thread Poitras Christian
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

Re: Lazy loading differences between ibatis 2 and 3

2009-12-16 Thread Carlos Pita
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

RE: Lazy loading differences between ibatis 2 and 3

2009-12-16 Thread Poitras Christian
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

Re: Lazy loading differences between ibatis 2 and 3

2009-12-16 Thread Carlos Pita
: 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

Re: Lazy loading differences between ibatis 2 and 3

2009-12-16 Thread Clinton Begin
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

RE: Lazy loading differences between ibatis 2 and 3

2009-12-16 Thread Poitras Christian
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

Re: RE: Lazy loading when having dynamic table names

2009-05-05 Thread gratler69
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

RE: Lazy loading when having dynamic table names

2009-05-04 Thread meindert
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

Re: Lazy loading when having dynamic table names

2009-05-04 Thread Christopher . Mathrusse
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

Re: Lazy loading when having dynamic table names

2009-05-04 Thread Erwan QUEFFELEC
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

RE: Lazy loading -- IllegalArgumentException: argument type mismatch

2007-10-02 Thread Niels Beekman
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

Re: Lazy loading -- IllegalArgumentException: argument type mismatch

2007-10-02 Thread Jonathan Alvarsson
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

RE: Lazy loading -- IllegalArgumentException: argument type mismatch

2007-10-02 Thread Niels Beekman
, 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

RE: Lazy Loading not working

2007-05-25 Thread Christopher . Mathrusse
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

Re: Lazy Loading not working

2007-05-24 Thread Larry Meadors
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

Re: Lazy loading - can I use any collection, such as java.util.Set, or must I use a java.util.List?

2007-01-08 Thread Carfield Yim
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

RE: Lazy Loading

2006-12-20 Thread Poitras Christian
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

Re: Lazy Loading

2006-12-20 Thread Larry Meadors
... 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

RE: Lazy Loading

2006-12-20 Thread Poitras Christian
-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

RE: Lazy Loading

2006-12-19 Thread MCCORMICK, Paul
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

RE: Lazy Loading

2006-12-19 Thread Wouter . Roose
@ibatis.apache.org 20/12/2006 02:04 cc Subject Please respond to RE: Lazy Loading

Re: lazy loading confusion

2006-09-27 Thread Tom Duffey
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

RE: lazy loading confusion

2006-09-27 Thread Poitras Christian
] 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

Re: lazy loading confusion

2006-09-27 Thread Tom Duffey
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

RE: lazy loading confusion

2006-09-27 Thread Poitras Christian
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

Re: lazy loading confusion

2006-09-27 Thread Tom Duffey
[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

Re: lazy loading confusion

2006-09-27 Thread Jeff Butler
[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

RE: lazy loading confusion

2006-09-27 Thread Poitras Christian
, 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

Re: lazy loading confusion

2006-09-27 Thread Tom Duffey
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

RE: lazy loading confusion

2006-09-27 Thread Christopher . Mathrusse
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

Re: lazy loading confusion

2006-09-27 Thread Tom Duffey
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 "

RE: lazy loading confusion

2006-09-27 Thread Poitras Christian
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

Re: lazy loading confusion

2006-09-27 Thread Tom Duffey
] (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:

RE: lazy loading confusion

2006-09-27 Thread Poitras Christian
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

Re: lazy loading confusion

2006-09-27 Thread Tom Duffey
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

RE: lazy loading confusion

2006-09-27 Thread Poitras Christian
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

RE: lazy loading

2006-06-15 Thread Poitras Christian
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

Re: lazy loading

2006-06-15 Thread Dodo
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

RE: lazy loading

2006-06-15 Thread Poitras Christian
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

Re: lazy loading

2006-06-14 Thread xianwinwin
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 -

Re: lazy loading

2006-06-14 Thread Dodo
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

RE: Lazy loading

2005-08-04 Thread Niels Beekman
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