Proper usage of Spring mvc 3 with hibernate (Spring ORM)

前端 未结 4 560
逝去的感伤
逝去的感伤 2020-12-14 04:51

I\'m starting a new project, trying to do things right this time(so more than one question), I might need some help, I\'m not sure what I\'m doing wrong :

  1. Spri
4条回答
  •  时光说笑
    2020-12-14 05:52

    I would suggest extending HibernateDaoSupport and using HibernateTemplate rather than using the SessionFactory (and creating transactions) explicitly in your DAO code.

提交回复
热议问题