Code example for JDBCException

Methods: getMessagegetSQLgetSQLException

0
	 */ 
	protected DataAccessException convertHibernateAccessException(HibernateException ex) {
		if (this.jdbcExceptionTranslator != null && ex instanceof JDBCException) {
			JDBCException jdbcEx = (JDBCException) ex;
			return this.jdbcExceptionTranslator.translate(
					"Hibernate operation: " + jdbcEx.getMessage(), jdbcEx.getSQL(), jdbcEx.getSQLException());
		} 
		return SessionFactoryUtils.convertHibernateAccessException(ex);
	} 
 
}