Announcement Announcement Module
Collapse
No announcement yet.
How HibernateTemplate Works internally? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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;

    Comment


    • #3
      I did not understand , anyway atleast thanks for responding .

      Now i think My query is not much of importance

      Comment

      Working...
      X