• 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?  RSS feed

 
jacob deiter
Ranch Hand
Posts: 586
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!