• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
I claim this furniture in the name of The Ottoman Empire! You can keep this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic