Hello.

I have a Spring app using Hibernate and it's set up using the
AnnotationSessionFactoryBean like so

<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
                <property name="dataSource" ref="dataSource"/>
                <property name="configLocation">
            <value>classpath:hibernate.cfg.xml</value>
        </property>
</bean>

It's not all strictly JPA annotations in my model there's some Hibernate
specific ones as well. 

Would this work ok with Orchestra? Setting it up like so:

<bean id="persistentContextFactory"
class="org.apache.myfaces.orchestra.conversation.spring.
JpaPersistenceContextFactory">
<property name="entityManagerFactory" ref="sessionFactory"/>
</bean>

Or should I get the HibernatePersistenceContextFactory from the
myfaces-orchestra-hibernate code? Code which isn't apart of orchestra 1.2
and may not be production quality?

Thanks.



-- 
View this message in context: 
http://www.nabble.com/Orchestra---Hibernate-with-Hibernate-Annotations--tp20025995p20025995.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to