Re: @Column with precision and scale - how does it work?

2007-04-10 Thread Michael Dick
I don't think Derby supports specifying the precision on type DOUBLE (maybe other datbases do). You should be able to specify the precision through the @Column annotation. I believe @Column(columnDefinition=DECIMAL(5,2)) will work. I'm not sure whether precision=x, scale=y with a type that maps

Re: @Column with precision and scale - how does it work?

2007-04-10 Thread Jacek Laskowski
On 4/10/07, Michael Dick [EMAIL PROTECTED] 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

Re: @Column with precision and scale - how does it work?

2007-04-10 Thread Michael Dick
I'm sorry, I misunderstood your question. I'm afraid I don't know how we determine when to apply the scale and precision. In this case the value should be ignored, since there's no way to set it on the column. If the attribute was of type BigDecimal then I think the precision and scale should

Re: @Column with precision and scale - how does it work?

2007-04-10 Thread Jacek Laskowski
On 4/10/07, Michael Dick [EMAIL PROTECTED] wrote: Would you mind opening a JIRA report for the problem? http://issues.apache.org/jira/browse/OPENJPA https://issues.apache.org/jira/browse/OPENJPA-213 Jacek -- Jacek Laskowski http://www.JacekLaskowski.pl