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

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.
 
Enjoy the full beauty of the english language. Embedded in this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic