Object not from this UnitOfWork

I get an error message:

Exception [EclipseLink-6004] ... The bla bla object is not from this UnitOfWork object space, but from the parent session. An object has never been registered with this UnitOfWork.

This is an exception that appears by chance. Does anyone know how to solve a problem?

Thank you for your advice, Micah.

+6
source share
1 answer

This means that you somehow messed up your persistence context. Most likely by mixing separate and managed objects.

-1
source

Source: https://habr.com/ru/post/944479/


All Articles