spring DAO hibernate

Posted on 2011-05-06
Last Modified: 2012-05-11

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.
Question by:gudii9
    LVL 47

    Accepted Solution

    You can read here about Spring and Hibernate integration:
    LVL 7

    Author Comment

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Suggested Solutions

    Title # Comments Views Activity
    array220 challenge 8 30
    endX challenge 2 32
    ArrayLists in ArrayLists/HashMaps? 4 29
    Unable to start eclipse ? 17 43
    For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
    Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
    Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
    This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now