This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Newbie got stuck in Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Newbie got stuck in Hibernate "Hello World"" Watch "Newbie got stuck in Hibernate "Hello World"" New topic
Author

Newbie got stuck in Hibernate "Hello World"

Tirthankar Mukherjee
Ranch Hand

Joined: Apr 08, 2006
Posts: 51

Dept.java


FirstExample.java


hibernate.cfg.xml


Dept.hbm.xml


Eclipse console output


Detp table


I cant get this code working. Please Help. Thanks in Advance
Tirthankar Mukherjee
Ranch Hand

Joined: Apr 08, 2006
Posts: 51
nway solved it ...

replaced cglib-2.2.jar with cglib-2.1.3.jar and it worked ...

If any one knows why .. please let me know ...
 
Don't get me started about those stupid light bulbs.
 
subject: Newbie got stuck in Hibernate "Hello World"
 
Similar Threads
SQLGrammarException
SEVERE: Duplicate entry '1' for key 'PRIMARY'
problem with showing records in hibernate
Not able to update or save a object to database. please help.
How to query?