For example I have such query:
Query q = sess.createQuery("from Cat cat"); List cats = q.list();
If I try to make something like this it will show warning "Type safety: The expression of type List needs unchecked conversion to conform to List":
List<Cat> cats = q.list();
Is there a way to avoid it?