Introduction of ORM with Spring:-
The Spring Framework supports integration with Hibernate, Java Persistence API (JPA) and Java Data Objects (JDO) for resource management, data access object (DAO) implementations, and transaction strategies.
Spring provides API to easily integrate Spring with ORM frameworks such as Hibernate, JPA(Java Persistence API), JDO(Java Data Objects), Oracle Toplink and iBATIS.
For example, for Hibernate there is first-class support with
several convenient IoC features that address many typical Hibernate integration
issues. You can configure all of the supported features for O/R (object
relational) mapping tools through Dependency Injection. They can participate in
Spring’s resource and transaction management, and they comply with Spring’s
generic transaction and DAO exception hierarchies. The recommended integration
style is to code DAOs against plain Hibernate, JPA, and JDO APIs.
Spring adds significant enhancements to the ORM layer of your choice when you create data access applications. You can leverage as much of the integration support as you wish, and you should compare this integration effort with the cost and risk of building a similar infrastructure in-house.
You can use much of the ORM support as you would a library, regardless of technology, because everything is designed as a set of reusable JavaBeans. ORM in a Spring IoC container facilitates configuration and deployment.