openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Udi <>
Subject Re: EntityNotFoundException in find()
Date Thu, 05 Mar 2009 07:52:41 GMT

I minimized the places I get EntityNotFoundException to a single refresh
I just can't figure out what the problem is:

if (!em.contains(entity))
em.refresh(entity);           ----->  EntityNotFoundException sometimes...

What do I do wrong? How can I tell that the entity is not managed anymore?
View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message