Error Information:java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
Error Cause:
Error Solution:
Summary:select count(*) from Customer
in Hibernate return a Long number after version 3.2, so List<Object>
.Object to Integer
should be Object to Long, then to Integer
.