These are chat archives for hibernate/hibernate-orm

2nd
Aug 2017
Declan Curran
@dcrn
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);
        entityManager.detach(foundModel);
        TestModel foundModel2 = entityManager.merge(foundModel);
        entityManager.detach(foundModel2);

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

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