Sr.Java Web Developer Question:
Download Job Interview Questions and Answers PDF
Explain me how to integrate Spring and Hibernate Frameworks?
Answer:
We can use Spring ORM module to integrate Spring and Hibernate frameworks, if you are using Hibernate 3+ where SessionFactory provides current session, then you should avoid using HibernateTemplate or HibernateDaoSupport classes and better to use DAO pattern with dependency injection for the integration.
Also Spring ORM provides support for using Spring declarative transaction management, so you should utilize that rather than going for hibernate boiler-plate code for transaction management.
Also Spring ORM provides support for using Spring declarative transaction management, so you should utilize that rather than going for hibernate boiler-plate code for transaction management.
Download Sr.Java Web Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Explain me what are the differences between Checked Exception and Unchecked Exception? | Can you name the different modules of the Spring framework? |