for your information I managed to get the real problem and its solution It did not concern the query length at all but only the fact that my query contained a union for which Hibernate does not really know what that should be associated to the different returned fields
The solution consists in calling query.addScalar("dep_name", Hibernate.STRING).addScalar("db_id", Hibernate.BIG_INTEGER).addScalar("name", Hibernate.STRING).addScalar("size", Hibernate.BIG_INTEGER).addScalar("installed_size", Hibernate.BIG_INTEGER).addScalar("fullname", Hibernate.STRING); before any query.setParameter(...) & query.list(...)
|