• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

package net.sf.hibernate does not exist

 
Thomas Paul Bigbee
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings

I'm new to hibernate and am trying to work my way thru the book Hibernate Quickly, the main Hibernate jar and all jar files in the lib directory are in my build path, I'm getting an error telling me the package net.sf.hibernate does not exist (import net.sf.hibernate.SessionFactory), my question is this all these errors I'm getting for this package all have classes in the main zip file hibernate3.jar, do I just need to rename the import statement to "org.hibernate.SessionFactory", or is there really a net.sf.hibernate package out there somewhere?

Thanks Tom
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Everything should be org.hibernate.*
 
Akbar Basha R
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Till hibernate 2.0, the package name was net.sf.hibernate.*,

From hibernate 3.0 onwards, the package name was changed to org.hibernate.*;
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic