| Not only "generatedAlias*", but FQCN such like "com.company.User" should return null immediately for ReflectHelper.getConstantValue(), Only "com.company.User.CONST_VALUE" should be tried. The key point is to find out why hibernate try to call getConstantValue() with invalid parameter, not create a custom classloader with cache. BTW: "org.hibernate.Criteria" is not affected but is deprecated with 5.2.x. |