• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate

 
Sudhakar Gaharwar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually i am very new user for Hibernate. And i have written one program on hibernate . I am using Oracle JDeveloper 10g IDE. I included all the libraries. But its giving error on only one thsng i.e . its not going to get HibernateUtil class. so pls let me confirm from which package we can get this(HibernateUtil) class.

I imported these packages...

import org.hibernate.*;
import org.hibernate.cfg.*;

so what else i have to import..

i have wriien a very simple program for testing..

pls anyone can help me..
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Object Relational Mapping forum, that is the forum for Hibernate questions. You also might want to read the readme.txt file that is in the lib directory with hibernate, it shows all the jars and which are required.

Mark
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see a HibernateUtil in the Hibernate API. Perhaps this was a class defined in a textbook. In that case you'll just have to find it and copy it into your project.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its referenced in the Hibernate quick start docs, as an example of a possible Hibernate helper class. if you want to use it you will have to implement it, since (as Jeff points out) it's not part of the Hibernate API.
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Paul Sturrock:
Its referenced in the Hibernate quick start docs, as an example of a possible Hibernate helper class. if you want to use it you will have to implement it, since (as Jeff points out) it's not part of the Hibernate API.


Oh, yes, that must have been a reference to this.
 
devil devil
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
include a jar file hibernate3.0
 
devil devil
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
u might be using user-defined classes other than defined in api. these classes can be book specific.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello "devil devil"-

Welcome to JavaRanch.

On your way in you may have missed that JavaRanch has a policy on display names, and yours does not comply with it - please adjust it accordingly, which you can do right here. Thanks for your prompt attention to this matter.

Enyoy your time here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic