• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

annotations ?

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic