-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate Migration Problem from 2.X to 3.X
PostPosted: Mon Jan 15, 2007 4:15 am 
Newbie

Joined: Mon Jan 15, 2007 3:47 am
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.