[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 361
  • Last Modified:

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.
0
gudii9
Asked:
gudii9
1 Solution
 
for_yanCommented:
You can read here about Spring and Hibernate integration:
http://static.springsource.org/spring/docs/2.5.x/reference/orm.html#orm-hibernate
0
 
gudii9Author Commented:
how to wire implicitly HibernateTEmplate to each and every DAO bean. please advise
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now