Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I have a POJO ,Now I want to generate mapping File (.hbm) and table .Hoe It can be done?

 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a POJO ,Now I want to generate mapping File (.hbm) and table .Hoe It can be done?
 
Keerthi Pandey
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We write first the hbm files and then get the setters and getters for those variables or properties in the POJO. So write the hbm files first and then generate the getters and setters.

 
naveen putrevu
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The order of events should be:

Create DB tables >> Write hbm files >> Write POJOs
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic