cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Gentry" <blackn...@gmail.com>
Subject Re: problems querying int,long
Date Mon, 19 Mar 2007 17:20:23 GMT
Try using a java.lang.Long or even a java.math.BigInteger.  If you use the
BigInteger, use String.valueOf(yourLong) to pass into the constructor
(BigInteger() will take a String, but not a long).

/dev/mrg


On 3/19/07, Frank <farocco@hotmail.com> wrote:
>
> Hello,
>
> I am getting hung up on passing int and long values to cayenne.
> In my MySQL database, all PK fields are defined as BIGINT.
> The PK in my cayenne schemas are defined as long.
> ExpressionFactory.matchDbExp is looking for an object, I am passing in a
> long.
>
> What is the best way to handle this?
>
>
>
> Thanks
>
> Frank
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message