This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Transformation to hibernate Annotation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Transformation to hibernate Annotation" Watch "Transformation to hibernate Annotation" New topic

Transformation to hibernate Annotation

Renjith Mohan
Ranch Hand

Joined: Nov 28, 2008
Posts: 65

I was using traditional mapping file in hibernate. Now I changed to hibernate annotations. So I created hibernate.cfg.xml and entity class.

But when I query the class, I get an error like :

Did I miss out anything?

Please help me fix it.

Thank you
Renjith Mohan
Ranch Hand

Joined: Nov 28, 2008
Posts: 65

Sorry friends, the issue has been solved !!!

I agree. Here's the link:
subject: Transformation to hibernate Annotation
It's not a secret anymore!