I\'m using a Double variable which holds the Item price. That variable is stored in postgresql database under a column of money type. I use setBigDecimal(position,value) SQL fu
Obviously priceSpinner.getValue() returns BigDecimal and you're trying to convert it to double and then back to BigDecimal.
priceSpinner.getValue()
BigDecimal
double
Why don't you just do?
insertStmt.setBigDecimal(position, (BigDecimal) priceSpinner.getValue());