<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
<property name="annotatedClasses" ref="annotatedClasses"/>
</bean>
<bean class="org.springframework.beans.factory.config.ListFactoryBean" id="annotatedClasses">
<property name="sourceList">
<list>
<value>foo.bar.dummy.MyEntity</value>
....
....
</list>
</property>
</bean>
Some projects prefer to list all annotated classes explicitly. This makes for a huge list, so often this list is declared separately, using either <util:list>, or using ListFactoryBean, and moved to a separate .xml config file.
It would be nice if IDEA could recognize this pattern when building the persistent model.
So another variation of the syntax given in the issue description would be:
<util:list id="annotatedClasses"> <value>foo.bar.Baz</value> ... </util:list>In addition, at the moment the <property> element shows as red.