Here is my postgres table
CREATE TABLE bid (
id SERIAL NOT NULL,
price MONEY NOT NULL,
date TIMESTAMP NOT NULL,
customer_id INT NOT NULL,
item_id INT NOT NULL,
CONSTRAINT bid_pk PRIMARY KEY (id)
);
I use BigDecimal
to store the price in Java. But when I run my application I get error
org.apache.openjpa.lib.jdbc.ReportingSQLException: ERROR: column t2.buyoutprice does not exist
What is the best way to store PostgreSQL Money Type in Java?