Jan 27th, 2011, 09:55 AM
catch SQL error code=1 via JPASystemException
I've created a unique index in one of my table ... and I would like to catch SQL code exception (Error Code 1) ...
First of all I could not catch any exception at all and finally after running unit tests I got internal EclipseLink exception ... so I inserted
after any create/merge I am using. The question here is if flush has any effect in my performance (since time is very important for us).
Now I can catch JPASystemException. But I cannot catch sql error code through JPASystemException. Is there any solution?
Hope some one can help me