cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <>
Subject Re: Wrong data type for source attribute of a relationship?
Date Mon, 10 Mar 2008 22:17:12 GMT
We stopped supporting FireBird some time back due to the lack of  
qualified volunteers, so I don't remember all the issues that we had  
with it. But still this seems weird... Just to doublecheck, what Java  
and DB type you entered for the object attribute and the corresponding  
column in the Modeler?

Also is this column an FK? Meaningful FK's are generally a bad idea.  
I'd recommend you get the value via a related object instead.


On Mar 10, 2008, at 9:30 PM, Walter Haas wrote:
> Hello,
> after creating a relationship which uses a column of the mapped type  
> double
> (decimal in db) as source field, the type cast of the readProperty  
> method
> throws an exception. It seems that the value is stored as BigDecimal  
> if the
> field is used in a relationship!?
> This happens in Cayenne 3.02M and 3.03M (used with JayBird/FireBird).
> Is this intendet behaviour? Any way to prevent this from happening?

View raw message