Two Laptop Bag*
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Annotation with hibernate and Spring" Watch "Annotation with hibernate and Spring" New topic
Author

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.
 
Consider Paul's rocket mass heater.
 
subject: Annotation with hibernate and Spring