The (boolean) EntityManager.contains(Object entity) works better. We should still fix PersistenceUnitUtil.isLoaded(new Entity) to return false.
The (boolean) EntityManager.contains(Object entity) works better. We should still fix PersistenceUnitUtil.isLoaded(new Entity) to return false.