异常org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of com.mi.domain.Department.id
【异常提示】 org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of com.mi.domain.Department.id
java.lang.IllegalArgumentException: object is not an instance of declaring class
解决办法:Hql 中的级联关系不能传入外键,而是要传入级联对象,学习还是要认真仔细啊