aspose file tools*
The moose likes Object Relational Mapping and the fly likes annotations ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "annotations ?" Watch "annotations ?" New topic
Author

annotations ?

Mag Wells
Ranch Hand

Joined: Jun 02, 2010
Posts: 38
how to generate POJOs with annotations ? I was able to reverse engineer a db table and get the corresponding POJO using hibernate tools. But how do we generate annotations.
I am using eclipse pluging for hibernate tools.


What I am able to do is -
1. Reverse engineer using hibernate tools. I get POJO and corresponding hbm.xml files.
2. Now again run the hibernate code generation but this time uncheck the reverese engineer box, provide all the generated mapping files and check 'Generate EJB3 annotations'.

Question are EJB3 annotations different from JPA and hibernate annotations ?


Ultimately, my goal is to use spring autowire thing for hibernate.
 
 
subject: annotations ?