ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Rogov" <andrey.ro...@gmail.com>
Subject Re: MSSQL guid question
Date Wed, 16 May 2007 20:26:06 GMT
Larry and Clinton, thank you a lot for the answers.
byte[] works, and BigInteger in resultMap works well too.



2007/5/16, Clinton Begin <clinton.begin@gmail.com>:
>
> Larry's right, probably a byte array.  iBATIS does support VARBINARY
> mapped to byte[].
>
> However, I'd really like to see you try to map it to a BigInteger.  A
> bytearray sucks to work with for obvious reasons.
>
> Clinton
>
> On 5/16/07, Larry Meadors <lmeadors@apache.org> wrote:
> >
> > You might try a byte[], and if that doesn't work, you may need a
> > custom type handler for them.
> >
> > Larry
> >
> >
> > On 5/16/07, Andrey Rogov <andrey.rogov@gmail.com > wrote:
> > > Excuse my simple question.
> > > I need to adapt my application for the ready-to-use system with the
> > MSSQL
> > > server where
> > > primary keys are of the binary 16 (guid) type.
> > > The list of types that support iBitis For Parameters Map and Resul
> > Maps does
> > > not contain
> > > Types.BINARY or Types.VARBINARY.
> > > Which type shall I install for my set/get primary keys to be able to
> > work
> > > with the binary 16 types of MSSQL?
> >
>
>

Mime
View raw message