-
Jan 27th, 2011, 09:55 AM
#1
catch SQL error code=1 via JPASystemException
Hi there!
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
Code:
entitymanager.flush()
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
/Sheri
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules