Re: BigDecimal as CAS type

2010-11-11 Thread Marshall Schor
If your additions are in the project where you're running JCasGen, it will *merge* updates to the type structures with your additions, preserving them :-) -Marshall On 11/10/2010 3:44 PM, Frank Schilder wrote: > >>> The easiest work-around would be to put a string representation >>> in the CAS.

Re: BigDecimal as CAS type

2010-11-10 Thread Frank Schilder
>> >> 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 annot

Re: BigDecimal as CAS type

2010-11-10 Thread Marshall Schor
On 11/10/2010 10:00 AM, Thilo Götz wrote: > On 11/10/2010 15:40, Frank Schilder wrote: >> Hi all, >> >> I'm trying to represent the value of a money amount as BigDecimal. For >> example $3.25 should be annotated with a Money annotation. The Money >> annotation should have a feature called val and

Re: BigDecimal as CAS type

2010-11-10 Thread Thilo Götz
On 11/10/2010 15:40, Frank Schilder wrote: > Hi all, > > I'm trying to represent the value of a money amount as BigDecimal. For > example $3.25 should be annotated with a Money annotation. The Money > annotation should have a feature called val and the value of this feature > should be of type Big

BigDecimal as CAS type

2010-11-10 Thread Frank Schilder
Hi all, I'm trying to represent the value of a money amount as BigDecimal. For example $3.25 should be annotated with a Money annotation. The Money annotation should have a feature called val and the value of this feature should be of type BigDecimal instead of float (or double). It has been sugg