You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Pinaki Poddar <pp...@apache.org> on 2013/03/28 00:06:22 UTC
Re: Externalizer and the dirty state
Perhaps you need to post the essentials of the externalized class
DummyWrapper. With a trivial implementation of the DummyWrapper class
public class DummyWrapper {
BigDecimal val = new BigDecimal(10);
public BigDecimal getDecimal() {
return val.setScale(6);
}
}
The SQLs that resulted with the code you posted show normal activity:
CREATE TABLE dummy (id BIGINT NOT NULL, label VARCHAR(255), wrapper
DECIMAL(9,6), PRIMARY KEY (id))
INSERT INTO dummy (id, label, wrapper) VALUES (?, ?, ?) [params=(long) 2,
(String) test, (BigDecimal) 10.000000]
END OF INSERT *******************
-----
Pinaki Poddar
Chair, Apache OpenJPA Project
--
View this message in context: http://openjpa.208410.n2.nabble.com/Externalizer-and-the-dirty-state-tp7583219p7583261.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.