一个事务中如何用两个session?
public String newPassword(String email,String question,String answer,String newPassword){
Bloger bloger = findByEmailQuestionAnswer(email, question, answer);
if(bloger != null){
bloger.setBlogerId(bloger.getBlogerId());
bloger.setBlogerPassword(newPassword);
attachDirty(bloger);
return "success";
}
报的错:Illegal attempt to associate a collection with two open sessions