Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 97658 invoked from network); 10 Apr 2007 20:33:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Apr 2007 20:33:00 -0000 Received: (qmail 10011 invoked by uid 500); 10 Apr 2007 20:33:06 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 9882 invoked by uid 500); 10 Apr 2007 20:33:06 -0000 Mailing-List: contact open-jpa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: open-jpa-dev@incubator.apache.org Delivered-To: mailing list open-jpa-dev@incubator.apache.org Received: (qmail 9873 invoked by uid 99); 10 Apr 2007 20:33:06 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2007 13:33:06 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of eljotpl@gmail.com designates 64.233.184.224 as permitted sender) Received: from [64.233.184.224] (HELO wr-out-0506.google.com) (64.233.184.224) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2007 13:32:59 -0700 Received: by wr-out-0506.google.com with SMTP id 67so1420313wri for ; Tue, 10 Apr 2007 13:32:38 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=UXrQ/TIMgmNex4cIDAzeJbWEq2BH0K7Hfpp3iC+Cn3DR8u4PyaaMhPOJQqk+xasmBSRR9DW3wEZldAjLimd3vaWiwqF3A6owgcxRRu8o3Rzd2iy/B/ZzaSwpDInjODQtPSQU9nNH+PPyaq46xqsWOti9DbiiFLyud0Gmr5jEVoM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=QoKK9krLE+zallU+I+m3Wqhe7GHa06gGzWlYa+ehNjtvTVmJw4n8LCOum3Y2T3jwzzkLEwt2XB6pFATKHalv9P3BS72sKjZNlqVFDDltLhPv40yew9LDpNWlDf49TKY70++63bVWylxXtrCTjWTdo2piqX2mvCyuk7Sf2/mTwEk= Received: by 10.114.169.2 with SMTP id r2mr2971975wae.1176237158220; Tue, 10 Apr 2007 13:32:38 -0700 (PDT) Received: by 10.114.193.10 with HTTP; Tue, 10 Apr 2007 13:32:38 -0700 (PDT) Message-ID: <1b5bfeb50704101332l23478311l1ad3e6c36b89d645@mail.gmail.com> Date: Tue, 10 Apr 2007 22:32:38 +0200 From: "Jacek Laskowski" Reply-To: jacek@laskowski.net.pl Sender: eljotpl@gmail.com To: open-jpa-dev@incubator.apache.org Subject: Re: @Column with precision and scale - how does it work? In-Reply-To: <72c1350f0704101301m5a6cf635m9c4d4c57a2b34ecd@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1b5bfeb50704101024v20824132mdf9fccbce8f6b395@mail.gmail.com> <72c1350f0704101301m5a6cf635m9c4d4c57a2b34ecd@mail.gmail.com> X-Google-Sender-Auth: eb09e2b18add76d0 X-Virus-Checked: Checked by ClamAV on apache.org On 4/10/07, Michael Dick wrote: > I don't think Derby supports specifying the precision on type DOUBLE (maybe > other datbases do). You're right - it doesn't. > You should be able to specify the precision through the @Column annotation. > I believe @Column(columnDefinition="DECIMAL(5,2)") will > work. DECIMAL is a synonim of NUMERIC and either works well. > I'm not sure whether precision=x, scale=y with a type that maps to > DECIMAL instead of DOUBLE. That's my question how OpenJPA recognizes whether the attributes should be used or not. I don't think precision and scale are not used at all. Jacek -- Jacek Laskowski http://www.JacekLaskowski.pl