JPA Hibernate merge performs insert instead of update

后端 未结 2 1887
执笔经年
执笔经年 2021-02-07 11:17

I have a simple test, where I am trying to update the object, but merge seems to be performing an insert instead of update.

@RunWith(SpringJUnit4ClassRunner.cla         


        
2条回答
  •  你的背包
    2021-02-07 11:31

    I had a version column which was not set when seed data was inserted into database. Hence all the problems with update and delete

提交回复
热议问题