问答详情
源自:1-3 实体和映射的创建

修改员工时出错

HTTP Status 500 - object references an unsaved transient instance - save the transient instance before flushing: com.aowin.ssh.domain.Department; nested exception is org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: com.aowin.ssh.domain.Department


提问者:慕粉4117367 2017-11-05 22:43

个回答

  • qq_X先生_6
    2017-11-06 15:43:39

    在action类上添加事务管理@transaction