These are chat archives for hibernate/hibernate-orm

Aug 2017
Declan Curran
Aug 02 2017 04:29
Ah I see, so the second detach (in detach -> merge -> detach) isn't actually operating on the "real" attached object then?

Yep, just confirmed it. I edited the last test case to this:

        TestModel foundModel = entityManager.find(TestModel.class, testObjectId);
        TestModel foundModel2 = entityManager.merge(foundModel);

This fails as it should. So the issue should be resolved then. Sorry for the misunderstanding ^^

Aug 02 2017 06:51
thanks a lot @ryan2049 for a hint
Chris Cranford
Aug 02 2017 12:32
Thanks @dcrn