• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate with annotation

 
anish jain
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Now I want to implement Hibernate using annotations. But while doing so I am getting some errors i.e. NoClassDefFoundError which most probably due to some jars' version compatibility issue.

Could you please tell me what all jars required for this? Please mention the version of the jar required.
 
Raaja Gotluru
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Please add these jars

hibernate-annotations.jar
ejb3-persistence.jar
hibernate-commons-annotations.jar

Hope this will help

 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!