Session session = HibernateSessionFactory.getSession();
List
if(menuId > 0){
String hql = " from Menu m left join m.role where roleId = ";
list = session.createQuery( hql + menuId).list();
}
session.close();
我从数据库中取出数据,放到list的集合中,但总是报错:
Type safety: The expression of type List needs unchecked conversion to conform to List
请问如何解决