title: can't get the sessionFactory
body: <p>my java project with spring and hibernate,can't get the sessionFactory.it's null all the time when i use it. the configuration:</p>
  
  <pre><code>&lt;bean id="sessionFactory"
      class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"&gt;
      &lt;property name="dataSource"&gt;
          &lt;ref bean="dataSource" /&gt;
      &lt;/property&gt;
      &lt;property name="hibernateProperties"&gt;
          &lt;props&gt;
              &lt;prop key="hibernate.dialect"&gt;
                  org.hibernate.dialect.Oracle9Dialect
              &lt;/prop&gt;
          &lt;/props&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;bean id="test" class="test.Test"&gt;
      &lt;property name="sessionFactory" ref="sessionFactory"&gt;&lt;/property&gt;
  &lt;/bean&gt;`
  </code></pre>
  
  <p>the main code of Test.java is </p>
  
  <pre><code>        private SessionFactory sessionFactory;
  
      public void setSessionFactory(SessionFactory sessionFactory) {
          this.sessionFactory = sessionFactory;
      }
      public SessionFactory getSessionFacoty(){
          return this.sessionFactory;
      }
          public static void main(String[] args) {
      // TODO Auto-generated method stub
      Test test = new Test();
      System.out.println(test.sessionFactory);
  }
  </code></pre>