hibernate - HibernateDAOSupport vs HibernateTemplate -


i trying understand benefit hibernatedaosupport provides on hibernatetemplate. hibernatetemplate pretty everything. why need extend hibernatedaosupport , gethibernatetemplate , operations rather injecting hibernatetemplate , operations. benefit when dao classes extend hibernatedaosupport.

i know not recommended use hibernatedaosupport , hibernatetemplate anymore trying understand difference.

this little guess work after skimming through api:

it looks @ first there hibernatetemplate hid session , if needed access session daosupport offer that.

from hibernatedaosupport javadoc:

this base class intended hibernatetemplate usage can used when working hibernate session directly, example when relying on transactional sessions. convenience getsession() , releasesession(org.hibernate.session) methods provided usage style.

but getsession method in daosupport deprecated hibernatesession, has same method now. thing left in daosupport, don't in template seems releasesession deprecated, can't find in hibernatetemplate api.

tl;dr;

these left overs age long ago. don't worry if aren't archaeologist.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -