Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

mapping of pojo to hbm file  RSS feed

 
Manohar Saddala
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How the hbm file is mapped to particular pojo..
What is the technology or mechanish used for mapping..
 
vijay yadav
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Manohar,

We can map the pojo to particular login.hbm.xml file like this

<class
name= "xyz.hibernate.LoginPojo" table="abc" >

Here login pojo was mapped in login.hbm.xml.

Regards,
Vijay.
 
Manohar Saddala
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Vijay...

Thanks for the info.
But i am asking about the mechanism behind mapping this activity.

Thanks
Manohar
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's based on the Reflection API.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!