Results 1 to 5 of 5

Thread: So should you still use Spring's HibernateTemplate and/or JpaTemplate??

Hybrid View

  1. #1
    Join Date
    Sep 2005
    Location
    Boston, MA
    Posts
    57

    Default So should you still use Spring's HibernateTemplate and/or JpaTemplate??

    Quick question about this article:

    http://blog.interface21.com/main/200...r-jpatemplate/

    The author says this in the 3rd paragraph in the "Going template-less" section:

    Now, as I said before, because of a small change in Hibernate 3.0.1, Spring is able to manage the Hibernate session for you, without you having to go through the Hibernate session.
    The author refers to a small change in Hibernate 3.0.1, what was that small change that has enabled the option for us to choose whether or not to use the HibernateTemplate?

  2. #2
    Join Date
    Nov 2005
    Location
    Reutlingen, Germany
    Posts
    2,098

    Default

    Why not ask that question in a comment at the blog?

    Jörg

  3. #3

    Default

    I think the documentation recommands to use JPA "template-less", at least that's what I'm doing.

    It's working fine that way, and you have less coupling to Spring, as some people today say it's a bad thing to be coupled with Spring...

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

    Default

    I think this might be what it's talking about.
    http://www.hibernate.org/hib_docs/v3...urrent-session
    Last edited by karldmoore; Aug 29th, 2007 at 10:51 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.

  5. #5
    Join Date
    Sep 2005
    Location
    Boston, MA
    Posts
    57

    Default

    Quote Originally Posted by karldmoore View Post
    I think this might be what it's talking about.
    http://www.hibernate.org/hib_docs/v3...urrent-session

    Great. Thanks.

Posting Permissions

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