What is Spring DAO?
Spring Data Access Object makes it easy to work with different data access technologies like JDBC, Hibernate, JPA and JDo in a consistent way. Spring DAO makes it easy to switch between different technologies if needed. It also provides its own exception class hierarchy which wraps technology specific exceptions of JDBC,Hibernate etc..
What's the use of Spring DAO Exception hierarchy?
Spring DAO converts checked exceptions to run time exceptions. Thus giving the ability to the user to handle the exceptions in the layer they want instead of being forced to handled all exceptions in DAO layer.
What are the different ways to handle Data Access in Spring?
|