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

fetching a column from different table  RSS feed

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.

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!