• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Hibernate Single class multiple table mapping

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I was just trying to map a class of mine to a set of tables in hbm files. Let me put my scenario here.

I have Table1 which holds foreign key relation to Table 2. Now Table 2 has foreign Key relation to Table3. I have a class Class1. Now how define this mapping in my hbm file.

Also note that I want all the values to come to a single class, since I don't want all values to fields to be fetched of these tables. My class has declared only those fields that I want to use. Totally and utterly confused.


Thanks in advance

Paddy
 
Acetylsalicylic acid is aspirin. This could be handy too:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic