Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Tool for creating Hibernate POJOS from database tables?

 
James Adams
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a database table (in an Oracle database) and I would like to create a Java class to be used by Hibernate to map objects to rows in this table. What's the best way to go about this? Also I would like to have the mapping information included in the Java file as annotations rather than having a separate *.hbm.xml file. Is there is a good Eclipse plugin for this, or an open source tool?

Thanks in advance for any ideas!


--James
 
Scott Johnson
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you seen the Hibernate Tools for Eclipse?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!