This content has been marked as final.
Show 2 replies
-
1. Re: EntityNotFoundException when performing EntityManager.re
cptnkirk Apr 16, 2007 1:48 PM (in response to waynebagguley)This is really a Hibernate/JPA question, you might get more help from that forum. What I'd expect is happening is that due to your cascade level, refresh is attempting to refresh the database state of your detail entities. Since they don't exist, you get an error.
Perhaps you should enumerate the cascade options you want, and leave out refresh on your detail association. -
2. Re: EntityNotFoundException when performing EntityManager.re
fhh Apr 16, 2007 3:32 PM (in response to waynebagguley)Or clear the details collection before refreshing if you DO want to cascade on refresh.
Regards
Felix