cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Dombrosky <>
Subject Re: Changed PK Typecasting?
Date Fri, 30 Oct 2009 10:40:30 GMT

I finally looked into this, and I found the problem.  I opened up for the bug.  It's not
a major regression, but it could be annoying for users upgrading from
earlier versions of Cayenne.


On Sun, Sep 27, 2009 at 9:34 AM, Andrus Adamchik <> wrote:
> I don't recall an intentional change to disable automated type conversion.
> It was not supported before, so I guess it was purely coincidental that it
> worked on a particular database with a particular driver.
> Andrus
> On Sep 25, 2009, at 11:46 AM, Dave Dombrosky wrote:
>> Trying to use the latest trunk code, I came across some behavior that
>> has changed.  I used to be able to pass DataObjectUtils.objectForPK a
>> primary key that was a String, and Cayenne would automatically
>> typecast this to the real PK type (such as String -> Integer).  Now it
>> seems like the typecasting does not occur, causing an exception on the
>> query with my database.
>> Was this change intentional?  If not, I'll open a bug report with more
>> detail.
>> -Dave

View raw message