Hibernate gives a strange ClassCast exception (using Transformers)
I found that AliasToBean has changed in Hibernate 5. For me adding getter for my field fixed the problem.
This exception occurs when the setters and getters are not mapped correctly to the column names. Make sure you have the correct getters and setters for the query(Correct names and correct datatypes). Read more about it here:
http://javahonk.com/java-lang-classcastexception-com-wfs-otc-datamodels-imagineexpirymodel-cannot-cast-java-util-map/