Emir,

I'll have to look into the sources to answer this question. Please bare with me.

Werner

wg> -----Urspr�ngliche Nachricht-----
wg> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
wg> Gesendet: Dienstag, 22. Februar 2005 12:21
wg> An: [email protected]
wg> Betreff: Re: [castor-user] [JDO] Unique constraint violations
wg> 
wg> 
wg> Werner,
wg> inline...
wg> 
wg> > Emir,
wg> > 
wg> > I honestly don't know your answer by heart (and I do not have 
wg> > access to the sources rigth now), but you could always test for 
wg> > PeristenceException in your code.
wg> 
wg> Yes, I know. But, there's a requirement that this 
wg> particular situation is to be handled differently and I 
wg> could get PersistenceException for other situations as well.
wg> I was just wondered if someone knows this already.
wg> 
wg> 
wg> Regards,
wg> Emir
wg> 
wg> 
wg> > 
wg> > Regards
wg> > Werner
wg> > 
wg> > wg> -----Urspr�ngliche Nachricht-----
wg> > wg> Von: [EMAIL PROTECTED] [EMAIL PROTECTED]
wg> > wg> Gesendet: Montag, 21. Februar 2005 16:32
wg> > wg> An: [email protected]
wg> > wg> Betreff: [castor-user] [JDO] Unique constraint violations
wg> > wg> 
wg> > wg> 
wg> > wg> 
wg> > wg> Hi,
wg> > wg> What exception will I receive when I violate a unique field 
wg> > wg> constraint set on database level during db.create()?
wg> > wg> I mean, I have a non-key field which has a unique 
wg> > wg> constraint and try to insert another object with the same 
wg> > wg> value for unique key.
wg> > wg> I know for DuplicateIdentityException, but this one is 
wg> > wg> thrown only when I violate primary key constraint, right?
wg> > wg> 
wg> > wg> Regards,
wg> > wg> Emir
wg> > wg> 
wg> > wg> 
wg> > wg> 
wg> > wg> ----------------------------------------------------------- 
wg> > wg> If you wish to unsubscribe from this mailing, send mail to
wg> > wg> [EMAIL PROTECTED] with a subject of:
wg> > wg>         unsubscribe castor-user
wg> > wg> 
wg> > 
wg> > 
wg> 
wg> 

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to