When trying to do reverse engineering on a database (generating jpa entities), some SQL types are badly translated into Java types. On a SQL column whose type is NUMERIC(38,0), the Java type should be BigInteger but is BigDecimal. IMO, if it's really a mistake, it's here : https://github.com/hibernate/hibernate-tools/blob/5.2/src/java/org/hibernate/cfg/reveng/JDBCToHibernateTypeHelper.java#L82 |