Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate example

 
kate pal
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If possible can anybody send me any small application on hibernate.
Also how to begin with that

Thanks in advance
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Hibernate documentation contains a number of examples, ranging in difficulty from simple to complex. What specifically are you looking for that's not demonstrated there?
 
kate pal
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much ....

I am pretty confuse with this classpath issue , I never get this can you guide me for same
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you having problems with in particular? Are there any error messages? TellTheDetails
 
kate pal
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I simply download the example from roseindia and kept in my eclipse ->workspace->hibernate folder , according to instruction we have only to run Java class.
I put jar for hibernate in properties->java build path->library.

very common exceptions are

1.
Exception in thread "main"
java.lang.NullPointerException
at roseindia.tutorial.hibernate.FirstExample.main(
FirstExample.java:36)
2.Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at org.hibernate.cfg.Configuration.<clinit>(
Configuration.java:151)
at roseindia.tutorial.hibernate.IdIncrementExample.main(
IdIncrementExample.java:23)

how many .jar actually we need in hibernate application

you can get the same ex on http://www.roseindia.net/hibernate/hibernate.zip

please make me clear .

Thanks in advance ....
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hard to say what it might take to make it work. Maybe it would be easier to work through the introduction I linked to?
 
kate pal
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ya sure , I'll work through that only

Thanks a lot......
 
Jignesh Patel
Ranch Hand
Posts: 626
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't try to run sample application without having good knowledage of hibernate.

Create a Test table, creata Hibernate BO. Create a Hibernate Session Factory. Create a java class with main method, hit the BO object.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic