The association of Bytes.class and Types.TINYINT is missed in version 5.2.13 and is necessary in 5.1.10 used by JBoss EAP 7.1. We lost the benefit of secured version of JBoss EAP if we upgrade manually the hibernate version used.