Return-Path: Delivered-To: apmail-uima-user-archive@www.apache.org Received: (qmail 56451 invoked from network); 10 Nov 2010 20:44:37 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Nov 2010 20:44:37 -0000 Received: (qmail 82573 invoked by uid 500); 10 Nov 2010 20:45:08 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 82227 invoked by uid 500); 10 Nov 2010 20:45:07 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 82219 invoked by uid 99); 10 Nov 2010 20:45:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 20:45:07 +0000 X-ASF-Spam-Status: No, hits=-1.4 required=10.0 tests=RCVD_IN_DNSWL_MED,RCVD_NUMERIC_HELO,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of frank.schilder@thomsonreuters.com designates 163.231.12.69 as permitted sender) Received: from [163.231.12.69] (HELO mailout2-tlr.thomson.com) (163.231.12.69) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 20:44:57 +0000 Received: from mailout2-tlr.thomson.com (localhost.localdomain [127.0.0.1]) by mailout2-tlr.thomson.com (Switch-3.3.2/Switch-3.3.2) with ESMTP id oAAKiYlF022916 for ; Wed, 10 Nov 2010 20:44:34 GMT Received: from tlrusmneagfe03.ERF.THOMSON.COM (tlrusmneagfe03.erf.thomson.com [163.231.22.177]) by mailout2-tlr.thomson.com (Switch-3.3.2/Switch-3.3.2) with ESMTP id oAAKiYkb022890 for ; Wed, 10 Nov 2010 20:44:34 GMT Received: from TLRUSMNEAGMBX11.ERF.THOMSON.COM ([163.231.30.92]) by tlrusmneagfe03.ERF.THOMSON.COM with Microsoft SMTPSVC(6.0.3790.4675); Wed, 10 Nov 2010 14:44:32 -0600 Received: from 163.231.65.103 ([163.231.65.103]) by TLRUSMNEAGMBX11.ERF.THOMSON.COM ([163.231.30.65]) via Exchange Front-End Server mail.west.thomson.com ([163.231.22.162]) with Microsoft Exchange Server HTTP-DAV ; Wed, 10 Nov 2010 20:44:32 +0000 User-Agent: Microsoft-Entourage/12.27.0.100910 Date: Wed, 10 Nov 2010 14:44:31 -0600 Subject: Re: BigDecimal as CAS type From: Frank Schilder To: Message-ID: Thread-Topic: BigDecimal as CAS type Thread-Index: AcuBGBMcr0Z/MSmziEuIJWd8wJxT/g== In-Reply-To: <4CDAE7C4.4050906@schor.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-OriginalArrivalTime: 10 Nov 2010 20:44:32.0933 (UTC) FILETIME=[14431550:01CB8118] X-Virus-Checked: Checked by ClamAV on apache.org >> >> The easiest work-around would be to put a string representation >> in the CAS. Just use the BigDecimal.toString() method to encode, >> and the BigDecimal(String) constructor to decode. I know it's >> ugly. If you hide this conversion behind some accessor methods >> for your money annotation, you can later change this implementation >> for something better. > > If you use the JCas approach, you can put the "hiding" conversions into some > customized methods in the JCas cover type. > > -Marshall I think that should work. I just need to be careful when I jcasgen the type system. Thanks, Frank