Dear All
I am getting the following exception from Hibernate:
Code:
2009-01-09 09:18:29,743 WARN [org.hibernate.util.JDBCExceptionReporter] - SQL Error: 1, SQLState: 23000
2009-01-09 09:18:29,743 ERROR [org.hibernate.util.JDBCExceptionReporter] - ORA-00001: unique constraint (XXX_XXX_PK) violated
But When I have tried to catch with DataAccessException, it is not coming under that catch block.
Code:
catch (DataAccessException dae) {
//some logic...
}
What is the type of exception I need to use to catch this exception?
Thanks in advance.[/code]