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