History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-18758
Type: New Feature New Feature
Status: Open Open
Assignee: Gregory Shrago
Reporter: Taras Tielkes
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Hibernate AnnotationSessionFactoryBean configuration not parsed

Created: 15 Jul 08 23:15   Updated: 17 Jul 08 23:45
Component/s: J2EE.Spring, J2EE.Hibernate

File Attachments: None
Image Attachments:

1. screenshot-1.jpg
(42 kb)

Build: 8,575


 Description  « Hide
<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>

Could IDEA support above style of AnnotatedSessionFactoryBean initialization?



 All   Comments   Work Log   Change History      Sort Order:
Taras Tielkes - 17 Jul 08 23:33 - edited
Let me comment a bit more on this..

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.