Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 8345 invoked from network); 12 Apr 2007 02:36:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Apr 2007 02:36:11 -0000 Received: (qmail 69010 invoked by uid 500); 12 Apr 2007 02:36:15 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 68744 invoked by uid 500); 12 Apr 2007 02:36:14 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 68733 invoked by uid 99); 12 Apr 2007 02:36:14 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2007 19:36:14 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [202.0.15.8] (HELO perexc64.doir.wa.gov.au) (202.0.15.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2007 19:36:06 -0700 Received: from perexc14.internal.dom ([172.20.51.14]) by perexc64.doir.wa.gov.au with InterScan Message Security Suite; Thu, 12 Apr 2007 10:35:41 +0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Lazy load and serializable Date: Thu, 12 Apr 2007 10:35:41 +0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Lazy load and serializable Thread-Index: Acd8R3Pgj7n/23paSVKgc759B2wkNAAY6hJg From: "MCCORMICK, Paul" To: X-Virus-Checked: Checked by ClamAV on apache.org Yes, create the JIRA please. =20 -----Original Message----- From: Daigo Kobayashi [mailto:daigo@abs-network.com]=20 Sent: Wednesday, 11 April 2007 10:41 PM To: user-java@ibatis.apache.org Subject: Re: Lazy load and serializable Hi, Thank you for replying. I know it is possible, if I modify iBatis' source code. But if I modify iBatis' source code, I have to maintain it. So if possible, I want to avoid it. So should I create jira? MCCORMICK, Paul wrote: > You'll need to modify the ibatis source code. If your not using cglib > then you only need to make the class LazyResultLoader serializable. >=20 > This is done in 3 easy steps. > 1) Add implements Serializable to the LazyResultLoader class=20 > definition > :) > 2) Make the private field ExtendedSqlMapClient client transient. > 3) Insert your own code to set the ExtendedSqlMapClient client field=20 > on deSerialization. >=20 > I've attached my version of LazyResultLoader.java >=20 > Hope this helps, > Paul >=20 > -----Original Message----- > From: Daigo Kobayashi [mailto:daigo@abs-network.com] > Sent: Tuesday, 10 April 2007 10:11 PM > To: user-java@ibatis.apache.org > Subject: Lazy load and serializable >=20 > I'm using 1:N mapping with lazy load option. > iBatis create not serializable object, so it can't store in some=20 > conditions. (I'm using Spring Web Flow and iBatis, serializable object > is required by Spring Web Flow.) >=20 > Is there any good way to resolve this? >=20 >=20 > "DISCLAIMER: This email, including any attachments, is intended only for use by the addressee(s) and may contain confidential and/or personal information and may also be the subject of legal privilege. If you are not the intended recipient, you must not disclose or use the information contained in it. In this case, please let me know by return email, delete the message permanently from your system and destroy any copies. >=20 > Before you take any action based upon advice and/or information contained in this email you should carefully consider the advice and information and consider obtaining relevant independent advice.