Spring's Hibernate template pattern

Spring provides a helper class to access data in the DAO layer--this class is based on the GoF template method design pattern. Spring provides the HibernateTemplate class for providing database operations such as save, create, delete, and update. The HibernateTemplate class ensures that only one Hibernate session is used per transaction.

Let's see Spring's support for Hibernate in the next section.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset