Results 1 to 3 of 3

Thread: Difference between HibernateDaoSupport and HibernateTemplate

  1. #1
    Join Date
    Jan 2005
    Posts
    2

    Default Difference between HibernateDaoSupport and HibernateTemplate

    Hi all

    I'd like to know whether there is any big difference when implementing
    DAO using HibernateDaoSupport and HibernateTemplate.
    According to the API documentation, both receives a session factory...
    could my daos inherit indistinctively from HibernateDaoSupport or HibernateTemplate without major consequences?
    thanks
    Patria

  2. #2
    Join Date
    Oct 2004
    Location
    Antwerp, Belgium
    Posts
    96

    Default

    could my daos inherit indistinctively from HibernateDaoSupport or HibernateTemplate without major consequences?
    The biggest difference I know of is that the HibernateTemplate created by HibernateDaoSupport is allowed to create Hibernate sessions (allow create) if no session is bound to the current thread. You can change the value through the allowCreate property on HibernateTemplate though.

  3. #3
    Join Date
    Jan 2005
    Posts
    2

    Default

    got it, thanks a lot for your reply!

Similar Threads

  1. HibernateTemplate and transactions
    By Simon Brunning in forum Data
    Replies: 4
    Last Post: Mar 9th, 2009, 12:37 AM
  2. Explain me the difference!
    By Demo in forum Data
    Replies: 10
    Last Post: Sep 15th, 2005, 11:14 AM
  3. Inject HibernateTemplate into DAO
    By foamdino in forum Data
    Replies: 5
    Last Post: Jul 6th, 2005, 06:56 AM
  4. Replies: 1
    Last Post: May 26th, 2005, 06:47 AM
  5. Replies: 6
    Last Post: Jan 8th, 2005, 03:07 AM

Posting Permissions

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