Hi all,

We cannot find a way to properly handle exceptions with duplicate keys
When trying to persist an object with a column indexed not accepting
duplicates usitn OTM.

Weir behaviour if we try to run our code twice in a row:
Stack trace shows in the first run
org.apache.ojb.broker.KeyConstraintViolatedException.

Second run will throw LockingException. We cannot catch this
KeyConstranintVialoatedException when using OTM no matter where we use
catch try statements.

Any ideas out there?

Thanks in advance,
Gustavo.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to