Hibernate facet and Spring framework
Is there any way how to configure hibernate facet if my hibernate configuration is stored via standard spring bean "session factory" ?
e.g.
<bean id="sessionFactory" >
<property name="dataSource" ref="postgresXADataSource"/>
<!--<property name="useTransactionAwareDataSource" value="true"/>-->
<property name="packagesToScan">
<list>
<value>com.idc.worldwide.keystones.service.productmanagement.domain</value>
<value>com.idc.worldwide.keystones.service.productmanagement.domain.pricing</value>
<value>com.idc.worldwide.keystones.service.productmanagement.domain.taxonomy</value>
<value>com.idc.worldwide.keystones.service.productmanagement.domain.report</value>
<value>com.idc.worldwide.keystones.service.employee.impl</value>
<value>com.idc.worldwide.keystones.service.employee</value>
</list>
</property>
....
</bean>
To be hibernate facet working for me, I have to always create hibernate.cfg.xml file (just for intellij idea).
Please sign in to leave a comment.
David,
Add spring & hibernate facets.
In spring facet configuration add the beans.xml into a fileset.
Now the session factory should appear in Persistence toolwindow.
Regards,
Gregory Shrago
On 26.11.2010 11:49, David Vach wrote:
>
>
>
>