@ 详解 getSession().delete(list)
Delete里不可以放到list集合,只能放object对相,所以他会报错
--------改成 Role role = (Role) getById(id)
if(role!=null){
getSession().delete(role)
}
)
};}
@ 详解 getSession().delete(list)
Delete里不可以放到list集合,只能放object对相,所以他会报错
--------改成 Role role = (Role) getById(id)
if(role!=null){
getSession().delete(role)
}
)
};}