Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Gregory Shrago 
Subsystem
J2EE.Hibernate 
Affected versions
Fixed in
Fixed in build
Next build 
Visible to
All Users 
  • Submitted by   Larry Chu
    2 years ago (05 Jan 2008 04:39)
  • Updated by   root
    7 weeks ago (17 Jan 2010 19:57)
  • Jira: IDEA-42474
    (history, comments)

IDEA-42474

abstract bean LocalSessionFactoryBean by hibernate integration

1
Given an abstract LocalSessionFactoryBean bean definition and a concrete bean instantiation of it, the mappings defined in the abstract bean are not detected by the hibernate integration. The session factory is detected, but none of the mapping files or entities show up underneath it in the Java EE :Structure Hibernate Facet view in the project tool window.

Here is an example:

<bean id="abstractSessionFactory" abstract="true" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="mappingResources">
<list>
<value>com/mycompany/Company.hbm.xml</value>
<value>com/mycompany/CompanyContact.hbm.xml</value>
</list>
</property>
<!-- other properties omitted for brevity -->
</bean>
<bean id="sessionFactory" parent="abstractSessionFactory"/>


Issue was resolved
Comments (1)
 
History (1)
 
Linked Issues (0)
 
Larry Chu
  Larry Chu
03 Jun 2009 23:49
(9 months ago)
#
This problem has reappeared in 8.1.1 and 8.1.2. Can we reopen?