I need to know difference of using Hibernate and Sring template. also can i use Spring instead of Hibernate?
Printable View
I need to know difference of using Hibernate and Sring template. also can i use Spring instead of Hibernate?
Spring's HibernateTemplate is a convenience class for accessing hibernate. So you cannot use it without hibernate. That said, in newer hibernate versions you do not need to use it, as hibernate has overcome some of its deficiencies that triggered the introduction of this class. Have a look at the documentation for some details.
Regards,
Andreas
No you cannot. Either use plain hibernate or use Spring/Hibernate you will need Hibernate. Read the reference guide chapter 12 especially chapter 12.2 which covers Hibernate.
I would agree with the previous points but I'm not entirely sure I understood the original question. Are you comparing JdbcTemplate and Hibernate? If that's the case yes you can use Spring without Hibernate, just use Jdbc instead.