-
Feb 12th, 2010, 01:02 PM
#1
java.math.BigDecimal usage question
i have something like this in the roo shell:
field number --type java.math.BigDecimal --fieldName salestax --notNull --class invoice
which gives me in the database:
| salestax | decimal(19,2) | YES | | NULL | |
what if i need a field with more decimal places?
like decimal(19,8) ?
thx in advance
-
Feb 12th, 2010, 02:08 PM
#2
You can use http://java.sun.com/javaee/5/docs/ap...ce/Column.html to specify extra precision if needed. Just edit the .java file and add the annotation above the field and it should work.
-
Feb 13th, 2010, 11:04 AM
#3
bug?
thx, thats working now.. what doesnt seem to work are @NotNull Annotiations,
they doesnt seem to get recognized. Changing @NotNull to @Column(nullable=false, length=128) is working, the database is created correct..
im using mysql and hibernate.
-
Feb 14th, 2010, 04:46 PM
#4
Glad the big decimal is working for you now. As for your other question see my response to your thread here: http://forum.springsource.org/showpo...25&postcount=2
HTH,
Stefan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules