nSpring has it’s own exception handling hierarchy for DAO logic.
nNo more copy and pasting redundant exception
logic!
nExceptions from JDBC, or a supported ORM, are
wrapped up into an
appropriate, and consistent, DataAccessException and thrown.
nThis allows you to decouple exceptions in
your business logic.
These exceptions are treated as unchecked exceptions that you can handle in your business tier if needed.
No need to try/catch in your DAO.
nDefine your own exception translation by
subclassing classes such
as SQLErrorCodeSQLExceptionTranslator