我跟着的AppFuse快速入門指南的模塊化和完整的源選項中選擇。當我發出AppFuse的快速啓動模塊化完整的源失敗testUpdateUser(
mvn install -Poracle
testUpdateUser拋出一個...
.hibernate4.HibernateSystemException: Found shared references to a collection...model.User.roles
我的理解是,這是因爲測試代碼試圖這樣做(這是休眠不允許的。)
user2.setRoles(user.getRoles());
那麼測試updateUser的正確方法是什麼?