-->
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.  [ 4 posts ] 
Author Message
 Post subject: net.sf.hibernate.LockMode cannot be resolved
PostPosted: Tue Jan 10, 2006 5:30 pm 
Newbie

Joined: Sun Jan 08, 2006 4:53 pm
Posts: 6
I'm trying to use Spring with Hibernate, and it looks like Spring is looking for libraries under net.sf.hibernate. Where do I get this stuff? From waht I can tell, the Hibernate 3.1 jar is organized in terms of org.hibernate... it sounds like net.sf.hibernate might be an obsolete package naming scheme?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 10, 2006 5:39 pm 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
Yes, net.sf.* is the Hibernate2 package scheme. Either get Hibernate2.jar, or upgrade Spring. I know that 1.2.5 supports Hibernate3, don't know about earlier versions.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 10, 2006 7:36 pm 
Newbie

Joined: Sun Jan 08, 2006 4:53 pm
Posts: 6
I'm using Spring 1.2.6, so this is a bit strange :\


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 10, 2006 7:44 pm 
Newbie

Joined: Sun Jan 08, 2006 4:53 pm
Posts: 6
ah nevermind, I was doing:

Quote:
import org.springframework.orm.hibernate.support.HibernateDaoSupport;


changed to:

Quote:
org.springframework.orm.hibernate3.support.HibernateDaoSupport;


and all is well now.

I guess this is more of a Spring question than a Hibernate question. I should've looked in the Spring forums :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.