-->
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.  [ 7 posts ] 
Author Message
 Post subject: Difference between hibernate3.jar & hibernate-core.jar ??
PostPosted: Mon Sep 20, 2010 3:27 am 
Newbie

Joined: Mon Sep 20, 2010 3:20 am
Posts: 4
Hi,

I'm looking to upgrade my hibernate API to be aligned with 3.5.4-Final version.

Currently my pom.xml is pointing to:

Code:
        <dependency>
     <groupId>org.hibernate</groupId>
     <artifactId>hibernate3</artifactId>
     <version>3.3.2.GA</version>
   </dependency>


My question is:

1. what is the difference between hibernate3 & hibernate-core jar?
2. In order to conduct this upgrade - do i need to replace hiberante3 jar ?

Thanks.


Top
 Profile  
 
 Post subject: Re: Difference between hibernate3.jar & hibernate-core.jar ??
PostPosted: Thu Oct 07, 2010 6:41 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
You should change to:

Code:
<dependency>
     <groupId>org.hibernate</groupId>
     <artifactId>hibernate-core</artifactId>
     <version>3.5.4-Final</version>
</dependency>


hibernate3 is an obsolete artifact. After successful "mavenizesation" the artifact names are hibernate-core, hibernate-annotations, hibernate-entitymanager, ...

--Hardy


Top
 Profile  
 
 Post subject: Re: Difference between hibernate3.jar & hibernate-core.jar ??
PostPosted: Thu Oct 07, 2010 8:21 am 
Newbie

Joined: Mon Sep 20, 2010 3:20 am
Posts: 4
Hi,
after changing the artifact to be hibernate-core - my server (Tomcat 6.0) isn't starting:

I get:

java.lang.ClassNotFoundException: org.hibernate.cache.EhCacheProvider

Please advice.


Top
 Profile  
 
 Post subject: Re: Difference between hibernate3.jar & hibernate-core.jar ??
PostPosted: Thu Oct 07, 2010 8:28 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
You need to also add

Code:
<dependency>
     <groupId>org.hibernate</groupId>
     <artifactId>hibernate-ehcache</artifactId>
     <version>3.5.4-Final</version>
</dependency>


If and which cache to use is puggable. You have to explicitly specify your cache provider. Alternative choices are oscache, jbosscache, ...
I think in the hibernate3.jar artifacts ehcache was still included as some sort of default cache.

--Hardy


Top
 Profile  
 
 Post subject: Re: Difference between hibernate3.jar & hibernate-core.jar ??
PostPosted: Thu Oct 07, 2010 8:54 am 
Newbie

Joined: Mon Sep 20, 2010 3:20 am
Posts: 4
Thanks - it is ok now.

Should i expect run time errors or is it backwards compatible?


Top
 Profile  
 
 Post subject: Re: Difference between hibernate3.jar & hibernate-core.jar ??
PostPosted: Thu Oct 07, 2010 8:56 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Wouldn't be able to tell out of the top of my head. I recommend you read the release logs.
It will of course also depend on which functionality you are using.

--Hardy


Top
 Profile  
 
 Post subject: Re: Difference between hibernate3.jar & hibernate-core.jar ??
PostPosted: Thu Oct 07, 2010 9:25 am 
Newbie

Joined: Mon Sep 20, 2010 3:20 am
Posts: 4
Thanks for your quick answers.


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

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.