I would log an issue against DerbyPlatform:
class oracle.toplink.platform.database.DerbyPlatform should specify a reasonable field size in buildFieldTypes method for BigDecimal: for OraclePlatform and SybasePlatform it's 38; for DB2Platform its 15 - probably should be 15 for Derby, too?
[Message sent by forum member 'ailitche' (ailitche)]
http://forums.java.net/jive/thread.jspa?messageID=237876