9
Source : www.javabeat.net Integrating Spring Framework with Hibernate ORM Framework Author : Christy Date : Tue Oct 16th, 2007 Topic : spring hibernate orm 1) Introduction Hibernate is a powerful technology for persisting data in any kind of Application. Spring, on the other hand is a dependency injection framework that supports IOC. The beauty of Spring is that it can integrates well with most of the prevailing popular technologies. In this article, we will discuss on how it is possible to integ rate Spring with Hibernate. This article assumes that the read er has a basic understanding in both Spring and Hibernate Frameworks. If you are new to Spring and Hibernate frameworks, please read the introduction articles on Spring and Hibernate before start reading this article. Raja has explained in Introduction to Spring Framework. This article will help you to understand the fundamentals of the Spring framework . In another article Introduction to Hibernate published on 12/05/2007 by Shunmuga Raja explains what is ORM framework and how to start writing the simple hibernate . Spring and Hibernate Resources Introduction to Spring Web Framework Introduction to Spring AOP Integrating Spring and Groovy Integrating Spring and JSF Intercept ors in Hibernate ORM Framework - An Introduction JPA in NetBeans 6.1 Hibernate Interview Questions Spring 2.5 - New Features 2) S pring and Hibernate As a pre-requisite, let us understand the need for such integration before we actually get into the integration between these two technologies. It is well known that Hibernate is a powerful ORM tool that li es between Application and Database. It enables Application to access data from any database in a platform-independent manner. There is no need for the Application to depend on the low-level JDBC details like managing connection, dealing with statements and result sets. All the necessary details for access ing a par ticular data source is eas ily config urable in Xml files. Another go od thing is that Hibernate can be coupled well with both and J2EE Applications. One of the problem with using Hibernate is that the client Application that accesses the database using Hibernate Framework has to depend on the Hibernate APIs like Configuration, SessionFactory and Session. These object s will continue to get scatter ed across the code throughout the App lication. application J2SE In tegrating Spring Framework with Hibernate ORM Framework http://www.javabeat.n et/ articles/print.php?article id=42 1 of 9 9/18/2010 2:09 PM

Integrating Spring Framewor

Embed Size (px)

Citation preview

Page 1: Integrating Spring Framewor

8/8/2019 Integrating Spring Framewor..

http://slidepdf.com/reader/full/integrating-spring-framewor 1/9

Page 2: Integrating Spring Framewor

8/8/2019 Integrating Spring Framewor..

http://slidepdf.com/reader/full/integrating-spring-framewor 2/9

Page 3: Integrating Spring Framewor

8/8/2019 Integrating Spring Framewor..

http://slidepdf.com/reader/full/integrating-spring-framewor 3/9

Page 4: Integrating Spring Framewor

8/8/2019 Integrating Spring Framewor..

http://slidepdf.com/reader/full/integrating-spring-framewor 4/9

Page 5: Integrating Spring Framewor

8/8/2019 Integrating Spring Framewor..

http://slidepdf.com/reader/full/integrating-spring-framewor 5/9

Page 6: Integrating Spring Framewor

8/8/2019 Integrating Spring Framewor..

http://slidepdf.com/reader/full/integrating-spring-framewor 6/9

Page 7: Integrating Spring Framewor

8/8/2019 Integrating Spring Framewor..

http://slidepdf.com/reader/full/integrating-spring-framewor 7/9

Page 8: Integrating Spring Framewor

8/8/2019 Integrating Spring Framewor..

http://slidepdf.com/reader/full/integrating-spring-framewor 8/9

Page 9: Integrating Spring Framewor

8/8/2019 Integrating Spring Framewor..

http://slidepdf.com/reader/full/integrating-spring-framewor 9/9