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

fetching a column from different table

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

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.

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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!