• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

fetching a column from different table

 
Chandra shekar M
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have three tables a,b,c all of them have mapping files and join is already defined on them and every thing is working fine. Now i have a requirement where
i have to fetch data from table a. when i fetch data from table a i need to join the tables b,c and then fetch a column type from these tables. the field type is already present in b.hbm.xml and c.hbm.xml files now i need to return these field type as part of object a. So i can add the field type in to a and mapping in the a.hbm.xml file. but how can define these mapping. because we need to join tables b,c and fetch only type column is there a way we can do this in hibernate.

Thanks
Chandra
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic