应该贴详细些。光这些信息不能知道你问题所有。看你用了spring,怎么还会有session的操作?

解决方案 »

  1.   

    Sorry, today, my computer does not work and I have no Chinese input method.I think you changed the id of the persist object and save them into the current session again.
      

  2.   

    你看一下一对多的那边,就是<set name=""
                               cascade="save-update">
                           <column="">这个地方要的是一那方的主见
                           ........</set>
    例如:customer和order
    那里添的是customer_id