Announcement Announcement Module
Collapse
No announcement yet.
Difference between HibernateDaoSupport and HibernateTemplate Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment


    • #3
      got it, thanks a lot for your reply!

      Comment

      Working...
      X