Results 1 to 4 of 4

Thread: compare JDBC Template and Hibernate

Hybrid View

  1. #1
    Join Date
    May 2007
    Posts
    104

    Default compare JDBC Template and Hibernate

    I need to know difference of using Hibernate and Sring template. also can i use Spring instead of Hibernate?

  2. #2
    Join Date
    Aug 2004
    Posts
    2,715

    Default

    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

  3. #3
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    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

  4. #4
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •