Skip to main content

[jsr338-experts] Duplicate key exceptions (RE: Re: converter errors)

  • From: "Evan Ireland" <eireland@...>
  • To: <jsr338-experts@...>
  • Subject: [jsr338-experts] Duplicate key exceptions (RE: Re: converter errors)
  • Date: Fri, 4 May 2012 09:29:22 +1200

Folks,

The discussion on converter exceptions had me reconsidering duplicate key
exceptions.

Has anyone found it inconvenient that duplicate key exceptions are not
recoverable, in the sense that TX is marked for rollback?

> -----Original Message-----
> From: michael keith [mailto:michael.keith@...] ;
> Sent: Friday, 4 May 2012 6:59 a.m.
> To: jsr338-experts@...
> Subject: [jsr338-experts] Re: converter errors
> 
> Yes (if transaction exists).
> 
> On 03/05/2012 1:32 PM, Linda DeMichiel wrote:
> > Our TCK engineer has pointed out to me that the spec doesn't
> > define what happens if a converter throws an exception.
> >
> > I would propose that the persistence provider wrap the 
> exception in a
> > PersistenceException and mark the transaction for rollback.
> >
> > Other opinions?
> >
> > -Linda



[jsr338-experts] converter errors

Linda DeMichiel 05/03/2012

[jsr338-experts] Re: converter errors

michael keith 05/03/2012

[jsr338-experts] Duplicate key exceptions (RE: Re: converter errors)

Evan Ireland 05/03/2012

[jsr338-experts] Re: converter errors

Linda DeMichiel 05/04/2012
 
 
Close
loading
Please Confirm
Close