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