we can take an alternate approach for that first we will fetch the result in to map and then covert to pojo by using jackson api for example
SQLQuery query = session.createSQLQuery("select id,name from College");
query.setResultTransformer(Transformers.ALIAS_TO_ENTITY_MAP);
List<map><string,>> list = query.list();
for (Map<string,> map : list)
{
ObjectMapper m = new ObjectMapper();
College anotherBean = m.convertValue(map, College.class);
colleges.add(anotherBean);
System.out.println(anotherBean);
}</map>