OK I found my problem it, I had the foreign key in a related DbEntity defined as a BINARY.
I will close the issue. regards Malcolm Edgar On Thu, Apr 17, 2008 at 8:18 PM, Andrus Adamchik <[EMAIL PROTECTED]> wrote: > > On Apr 17, 2008, at 1:13 PM, Malcolm Edgar wrote: > > Hi Andrus, > > > > the column is a MySQL 5.0 BIGINT, I have tried changing this to an > > INTEGER > > and I still had the same problem. > > > > regards Malcolm Edgar > > > > So it is BIGINT on MySQL end and in the Cayenne model? Please doublecheck > that you don't map it as BINARY in the DataMap... Otherwise I can't imagine > why Cayenne would read it as a byte[]. > > Andrus >