I need to know difference of using Hibernate and Sring template. also can i use Spring instead of Hibernate?
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.
Marten Deinum
Java Consultant / Pragmatist / Open Source Enthousiast / Author
Pro Spring MVC: With Web Flow
Conspect
Have you read the reference guide.
Use the [ code ] tags, young padawan
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.
Last edited by karldmoore; Aug 29th, 2007 at 10:27 AM.
Barracuda Networks SSL VPN Lead Developer
http://pramatr.wordpress.com
http://twitter.com/karldmoore
http://www.linkedin.com/in/karldmoore
Any postings are my own opinion, and should not be attributed to my employer or clients.