• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate Single class multiple table mapping  RSS feed

paddy Mahadeva Iyer
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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

Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!