[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.rt.eclipselink] Re: Persistence context lost after rollback
|
- From: tbee <tbee@xxxxxxxx>
- Date: Mon, 06 Jul 2009 15:56:29 +0200
- Newsgroups: eclipse.rt.eclipselink
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.19 (Windows/20081209)
I've written an extention on the entitymanager that registers any persist, merge or delete action and holds those until the commit is executed. Then it re-applies these actions.
This because I ran into the same situation as you did, so now it can survive a SQLException. Simply change the entiies so it won't fail and commit again.
Tom