Return-Path: Delivered-To: apmail-incubator-ibatis-user-java-archive@www.apache.org Received: (qmail 9176 invoked from network); 4 May 2005 18:08:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 May 2005 18:08:38 -0000 Received: (qmail 56244 invoked by uid 500); 4 May 2005 18:10:30 -0000 Delivered-To: apmail-incubator-ibatis-user-java-archive@incubator.apache.org Received: (qmail 55953 invoked by uid 500); 4 May 2005 18:10:17 -0000 Mailing-List: contact ibatis-user-java-help@incubator.apache.org; run by ezmlm Precedence: bulk Reply-To: ibatis-user-java@incubator.apache.org List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list ibatis-user-java@incubator.apache.org Received: (qmail 55727 invoked by uid 99); 4 May 2005 18:10:10 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail.plateau.com (HELO newmail.plateau.com) (63.105.186.130) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 04 May 2005 11:10:09 -0700 Received: by newmail.plateau.com with Internet Mail Service (5.5.2653.19) id ; Wed, 4 May 2005 14:06:38 -0400 Message-ID: <53C527E2212BC849B14091DACFA944C86039A6@newmail.plateau.com> From: Ming Xue To: "'ibatis-user-java@incubator.apache.org'" Subject: RE: BLOB type handler Date: Wed, 4 May 2005 14:06:31 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I try to map BLOB to byte[] and it works, BUT the question is : How to map BLOB to String? and other possible java types? -----Original Message----- From: Brandon Goodin [mailto:brandon.goodin@gmail.com] Sent: Wednesday, May 04, 2005 1:58 PM To: ibatis-user-java@incubator.apache.org Subject: Re: BLOB type handler This link may help you. We used to have a FAQ on our wiki that dealt with it. But, recent transitions have removed it. http://www.mail-archive.com/ibatis-user-java@incubator.apache.org/msg01800.h tml On 5/4/05, Ming Xue wrote: > DB is oracle 9i, I already have the code to read/write BLOB, the question is > how to plug in these code into the Framework? > > In the app, BLOB is used in multiple places : > > JDBC type Java Type > BLOB String > BLOB XML > BLOB Java Object > > How should I use the Custom Type handler to handle these cases ? or there > are other ways? > > thanks > > > -----Original Message----- > From: Brandon Goodin [mailto:brandon.goodin@gmail.com] > Sent: Wednesday, May 04, 2005 12:48 PM > To: ibatis-user-java@incubator.apache.org > Subject: Re: BLOB type handler > > Depends on what database you are using and how their driver supports > it. Please provide more information. > > Brandon > > On 5/4/05, Ming Xue wrote: > > I am doing some testing on Custom Type Handler, in my project, BLOB is > > mapped to a "String" type java bean property, it seems the Framework can > > not set the value properly. Does the java bean property has to be byte[]? > > > > thanks > > >