In general the contents of the entity should match what we get back from the
JDBC driver. I don't think OpenJPA intentionally pads or trims the contents
of a String (although you're seeing otherwise).
That said, DB2 does not differentiate between 'abc' and 'abc '. So
something like this will work :
INSERT INTO s (name) VALUES ('abc ')
SELECT * FROM s WHERE name = 'abc' // returns the row you just inserted.
hth
-mike
--
View this message in context:
http://openjpa.208410.n2.nabble.com/Padding-of-CHAR-n-columns-with-trailing-spaces-tp6364510p6428535.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.