title: name attribute in bean for sessionFactory is in 'red' in IDEA i.e. cannot resolve property
body: <p>My app-config.xml looks like:</p>
  
  <p>
        
        
        
        
        
        
        
        
        
        
    </p>
  
  <pre><code> &lt;!-- Hibernate SessionFactory --&gt;
    &lt;bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"&gt;
        &lt;property name="dataSource" ref="dataSource"/&gt;
        &lt;!--&lt;property name="configLocation" value="classpath:hibernate.cfg.xml"/&gt;      --&gt;
        &lt;property name="hibernateProperties"&gt;
            &lt;value&gt;
                hibernate.dialect=org.hibernate.dialect.MySQLDialect
                hibernate.connection.url=jdbc:mysql://localhost/mydb
                hibernate.connection.username=devuser
                hibernate.connection.password=devpwd
                hibernate.query.substitutions=true 'Y', false 'N'
                hibernate.cache.use_query_cache=true
                hibernate.cache.use_second_level_cache=true
                hibernate.cache.provider_class=org.hibernate.cache.EhCacheProvider
                hibernate.jdbc.batch_size=0
            &lt;/value&gt;
        &lt;/property&gt;
    &lt;/bean&gt;
  
    &lt;!-- Transaction manager for a single Hibernate SessionFactory (alternative to JTA) --&gt;
    &lt;bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"&gt;
        &lt;property name="sessionFactory" ref="sessionFactory"/&gt;
    &lt;/bean&gt;
  
  
     &lt;bean id="userDao" class="com.blah.core.db.hibernate.UserDaoImpl"&gt;
        &lt;property name="sessionFactory" ref="sessionFactory"/&gt;
    &lt;/bean&gt;
  </code></pre>
  
  <p>the line 
  
  <p>What could the reason be?</p>