Benefits of HibernateTemplate
1. HibernateTemplate, a Spring Template class simplifies interactions with Hibernate Session.
2. Common functions are simplified to single method calls.
(provides different methods for querying / retrieving data from the database)
3. Sessions are automatically closed.
4. Exceptions are automatically caught and converted to runtime exceptions.
(converts checked HibernateExceptions into unchecked DataAccessExceptions)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.