Results 1 to 3 of 3

Thread: How HibernateTemplate Works internally?

  1. #1

    Default How HibernateTemplate Works internally?

    Code:
    <bean id="myProductDao" class="MyDAOClass">
        <property name="sessionFactory" ref="mySessionFactory"/>
      </bean>
    Code:
    public class MyDAOClass implements MyDao {
    
        private HibernateTemplate hibernateTemplate;
    
        public void setSessionFactory(SessionFactory sessionFactory) {
            this.hibernateTemplate = new HibernateTemplate(sessionFactory);
        }

    I am having a question here , how this works internally ? As the MyDAOClass does not have a property sessionFactory ??

  2. #2
    Join Date
    May 2007
    Location
    Saint Petersburg, Russian Federation
    Posts
    1,189

    Default

    Quote Originally Posted by kiran7881 View Post
    [
    I am having a question here , how this works internally ? As the MyDAOClass does not have a property sessionFactory ??
    It has the property.

    1. JavaBeans specification;
    2. Introspector's contract;

  3. #3

    Default

    I did not understand , anyway atleast thanks for responding .

    Now i think My query is not much of importance

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •