Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 44027 invoked from network); 10 Mar 2008 22:17:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Mar 2008 22:17:43 -0000 Received: (qmail 21181 invoked by uid 500); 10 Mar 2008 22:17:40 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 20939 invoked by uid 500); 10 Mar 2008 22:17:39 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 20930 invoked by uid 99); 10 Mar 2008 22:17:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2008 15:17:39 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 10 Mar 2008 22:17:03 +0000 Received: (qmail 30314 invoked from network); 10 Mar 2008 22:17:13 -0000 Received: from unknown (HELO ?IPv6:::1?) (127.0.0.1) by localhost with SMTP; 10 Mar 2008 22:17:13 -0000 Message-Id: <54E4CAB3-D26F-41D6-89EE-572248D19CE2@objectstyle.org> From: Andrus Adamchik To: user@cayenne.apache.org In-Reply-To: <15951944.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: Wrong data type for source attribute of a relationship? Date: Tue, 11 Mar 2008 00:17:12 +0200 References: <15951944.post@talk.nabble.com> X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org 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. Andrus 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? >