Hello,
I have a code using JPA with Hibernate 3.3.x. This Java code can be used with schemas stored either on Oracle 10g or MySQL 5.1.x. Tables are defined with constraints to define unique records. When a constraint violation occurs, I want to retrieve the constraint name from the exception.
With Oracle, the constraint name is properly retrieved. With MySQL, the constraint name is NULL.
Any idea how to get the constraint name with MySQL?
Thanks
Said