Hi,
We are currently using hibernate 2.x and been asked to migrate to 3.x . We use Hibernate as a JCA adapter. Here is some important entry from the my ra.xml
Code:
<managedconnectionfactory-class>net.sf.hibernate.jca.ManagedConnectionFactoryImpl</managedconnectionfactory-class>
<connectionfactory-interface>net.sf.hibernate.SessionFactory</connectionfactory-interface>
<connectionfactory-impl-class>net.sf.hibernate.jca.JCASessionFactoryImpl</connectionfactory-impl-class>
<connection-interface>net.sf.hibernate.Session</connection-interface>
<connection-impl-class>net.sf.hibernate.jca.JCASessionImpl</connection-impl-class>
While migrating the hibernate one of the main problems we are facing is the JCA package remove entirely from the hibernate 3.X jar file. It's not been mentioned any where what are the replacement for following files in 3.X
net.sf.hibernate.jca.ManagedConnectionFactoryImpl
net.sf.hibernate.jca.JCASessionFactoryImpl
net.sf.hibernate.jca.JCASessionImpl
In the absence of the above files I tried using
org.hibernate.impl.SessionFactoryImpl
org.hibernate.impl.SessionImpl
After using the files , I am able to establish connection to the database but neither createCriteria() nor the createQuery() methods are returning any result only createSQLQuery() is working.
By the way I am using org.hibernate.classic.Session as suggeested by the Hibernate migration guide.
Any suggestion would help.
Thanks
- Dipankar