Re: custom type stops working - good-to-broken.diff (1/1)

2012-07-19 Thread Arturo Perez
In article , Andrus Adamchik wrote: > On Jul 19, 2012, at 3:24 PM, Arturo Perez wrote: > > > diff goodNewMap.xml badOldMap.xml. > > So does goodNewMap.xml exhibit the problem with custom types or > badOldMap.xml? Sorry, a bit confused here. Also in the diff could you tell me > the names of t

Re: Generated primary keys are being truncated

2012-07-19 Thread Joseph Senecal
We're using Oracle and sequences, not an AUTO_PK table to generate the keys. I've added logging into the custom code that pulls sequences, and the values are right at that point. But when I look at the code that calls that, I find right after the call: if (pk.getType() == Types.BIGINT) {

Re: Generated primary keys are being truncated

2012-07-19 Thread Aristedes Maniatis
Look at the columns widths of the AUTO_PK table? Ari On 20/07/12 10:07am, Joseph Senecal wrote: We are using Cayenne 3.1 M3 in production. We have just discovered that the primary keys being generated are being truncated to fit an int. The sequence returns numbers like 5224748590. I've confir

Generated primary keys are being truncated

2012-07-19 Thread Joseph Senecal
We are using Cayenne 3.1 M3 in production. We have just discovered that the primary keys being generated are being truncated to fit an int. The sequence returns numbers like 5224748590. I've confirmed this by logging the return value of LongPkRange.getNextPrimaryKey. But the inserts are using P

Re: custom type stops working - good-to-broken.diff (1/1)

2012-07-19 Thread Andrus Adamchik
On Jul 19, 2012, at 3:24 PM, Arturo Perez wrote: > diff goodNewMap.xml badOldMap.xml. So does goodNewMap.xml exhibit the problem with custom types or badOldMap.xml? Sorry, a bit confused here. Also in the diff could you tell me the names of the columns that are causing you grief? > Haven't tr

Re: custom type stops working - good-to-broken.diff (1/1)

2012-07-19 Thread Arturo Perez
Well, I ended up throwing away the old map and reengineering** the DB from scratch. But I did save the broken map and I attached a diff between the broken one and the new, working one. The diff was created via diff goodNewMap.xml badOldMap.xml. For some columns the custom type is a PK but it

Re: Stumps me.....Error "java.lang.String cannot be cast to java.util.UUID"

2012-07-19 Thread Kanwar Manish
Sorry for a late reply. It was duh moment for me. Just made the column type as varchar and it worked. It was char earlier. Thanks for your time. KM On Tue, Jul 17, 2012 at 12:41 AM, Andrus Adamchik wrote: > Hi, > > so how is this entity mapped? > > Andrus > > On Jul 5, 2012, at 3:46 PM, Kanwar