Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

asked on

spring DAO hibernate


I was reading folowing lines. And I did not understand clearly.

Now we have a fully configured SessionFactory and we didn’t even need to create
a second configuration file. Now all we need to do is create an object through
which we will access Hibernate. Like all of Spring’s DAO frameworks, this will be a
template class. In this case, it is the HibernateTemplate class. And because the
HibernateTemplate class is thread-safe, we can share this template class with multiple
DAO objects:
And remember, if it becomes cumbersome to wire the template into each of your
DAO beans, you can always use Spring’s autowire facility to implicitly wire your DAO
beans. Now that you know how to wire a HibernateTemplate to your DAO objects,
we are ready to start using Hibernate.

Any ideas, resources,sample code,links, highly appreciated. thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of for_yan
for_yan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gudii9

ASKER

how to wire implicitly HibernateTEmplate to each and every DAO bean. please advise