Message Boards

How to insert BigDecimal values through service-builder services rest?

thumbnail
Fernando Fernandez, modified 4 Years ago.

How to insert BigDecimal values through service-builder services rest?

Expert Posts: 396 Join Date: 8/22/07 Recent Posts
Hi guys,
I've created a simpleĀ service for and entity called Customer with a BigDecimal column called customerTotalBizValue.
I've created an addCustomer() method with each column value and it's being exposed on /api/jsonws alright.
Whan I try to insert a record through the rest service, I get an error saying "123,45 cannot be found by com.test.sampledataservice.service_1.0.0", where 123,45 is the value IĀ  sent for the BigDecimal column. If I leave the field empty, the record is inserted into the DB with a null on that column.
Any ideas on how the BigDecimal should be sent? And why its different from the other fields like Date, String, etc.?
TIA
Fernando