java.lang.IllegalArgumentException: Removing a detached instance com.test.User#5

前端 未结 5 1739
执笔经年
执笔经年 2020-12-07 16:32

I have a java EE project using JPA (transaction-type=\"JTA\"), hibernate as provider. I write my beans to handle the CRUD things. The program running in JBOSS 7 AS.

5条回答
  •  无人及你
    2020-12-07 17:01

    Sometimes its simply because you are missing the @Transaction annotation for add, remove, update operations.

提交回复
热议问题