File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes Annotation with hibernate and Spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Annotation with hibernate and Spring" Watch "Annotation with hibernate and Spring" New topic

Annotation with hibernate and Spring

Ankita Jha
Ranch Hand

Joined: Sep 15, 2008
Posts: 55

Hello ranchers,
Can any one provide me a with working example of Annotation integrated with hibernate and spring.
What are the jar files that will be needed for using annotations.
What i mean, is an example Java file with all import statements.
As far as my knowledge is concerned i guess i'll need 3 jars :-hibernate-commons-annotations.jar,hibernate-annotations.jar,ejb3-persistence.jar
Of these three which is the one that we actuaaly use while creating POJOS

Thanks in advance.
I agree. Here's the link:
subject: Annotation with hibernate and Spring
It's not a secret anymore!