ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Meadors" <lmead...@apache.org>
Subject Re: Can I use Hibernate 3.x with latest iBatis DAO?
Date Tue, 02 May 2006 02:42:14 GMT
You may be able to get this working, but to me the real question is
"why?", not "how?".

IMO, I'd use Spring for the dao instead of the iBATIS dao.

Larry


On 5/1/06, Christopher Lamey <clamey@localmatters.com> wrote:
> Hello,
>
> The one and only time I've used Hibernate, I think I saw that message
> when 3.x code resolved to a 2.x library.  Is there a 2.x Hibernate
> library in your CLASSPATH somewhere before the 3.x library?  If you're
> using JBoss, there's a 2.x hibernate deployer by default in
> $JBOSS_HOME/server/$SERVER_NAME/deploy
>
> Once the class is resovled, I have no idea if what you're trying to do
> will work but if it doesn't you'll probably get a different error.
>
> Cheers,
> topher
>
> On Tue, 2006-05-02 at 00:17 +0000, harinder nandyala wrote:
> > When I use Hibernate with Latest ibatis DAO I get this error:
> >
> > java.lang.NoClassDefFoundError: net/sf/hibernate/cfg/Configuration
> >
> > Can I use this version of Hibernate?
> > Here is a part of daomap.xml file:
> > ******************
> > <context id="hibernatemap">
> >               <transactionManager type="HIBERNATE">
> >               <property name="JDBC.Driver" value="com.ibm.db2.jcc.DB2Driver"/>
> >                       <property name="hibernate.dialect"
> > value="org.hibernate.dialect.DB2Dialect"/>
> >                       <property name="hibernate.connection.driver_class"
> > value="com.ibm.db2.jcc.DB2Driver"/>
> >                       <property name="hibernate.connection.datasource" value="jdbc/SAMPLE"/>
> >                       <property name="class.1" value="com.sample.contact.Contact"
/>
> >               </transactionManager>
> >               <dao interface="com.sample.contact.dao.ContactDAO"
> >                       implementation="com.sample.contact.dao.hibernate.HibernateContactDAO"
/>
> >       </context>
> > ******************
> > Any help is appreciated. Thank you,
> >
> > "The more you strive for humanity, the more civilized you become" -ASHA
> >
> > Harinder Nandyala
> > http://www.ashakiran.org
> >
>
>

Mime
View raw message