Joined: Wed Jul 23, 2008 3:51 am Posts: 2
|
Hi,
I got the ClassCastException:model.Event when I executing the following code
public static <T> Collection<T> getAll(Class<T> clazz)
{
Criteria criteria=session.createCriteria(Host.class).addOrder(Order.asc("host_id"));
List list=criteria.list();
}
This Exception is Generated at criteria.list();.I have another class i.e Event which is also use the same code with Event.class and the the event_id before the used with Host.Where as There is no Exception With Event.
kind Regards
Khirod Patra
|
|