Hi Arturo,

could you possibly provide a diff between old and new DataMap? Also is custom 
type used for a PK column by any chance? (this shouldn't be a problem, I am 
just collecting clues). Finally, have you tried it with Cayenne 3.1?

Thnaks,
Andrus

On Jul 19, 2012, at 4:51 AM, Arturo Perez wrote:

> Using 3.0.2 on Mac OS 10.5.8 and java6.
> 
> After updating my map.xml with some new entities and some altered 
> columns at least one of my custom types stops working.  For example,
> I have an ObjEntity with 2 attributes of the same DB type (bigint) that
> should be converted to an object essentially using MyObject.valueOf.  The
> first attribute gets converted but the second does not.  Other 
> ObjEntities with a similarly defined column also do not get converted 
> using the custom type mechanism.
> 
> Ultimately I end up getting a ClassCastException from readProperty
> Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast 
> to com....
>   at com....(_....java:32)
>   at com....(....java:138)
> 
> 
> If I revert the map.xml to the previous version via SCM then those 
> custom types start working again.
> 
> Anyone seen anything like this before?
> 
> This has happened to me before before saving saving saving has made it 
> go away but not this time...
> 
> 

Reply via email to