How do I know if an EclipseLink object is detached?

Do you know any method to find out the state of a JPA object ?. I am facing some errors and I need to know if the object is detached or is being managed.

I am using EclipseLink 2.1.2

+4
source share
1 answer

EntityManager.contains()

Verify that the instance is a managed entity instance that is relevant to the current save context.

+7
source

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


All Articles