• Post Reply Bookmark Topic Watch Topic
  • New Topic

using attributes from different tables in the mapping/annotation

Priya Venkatesan
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am relativley new to hibernate and hence bear my question.Is it possible to create a POJO containing different attributes and these attributes may belong to different tables. Is it possible to have annotations/mappings in the class that would map to right columns in different tables?
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!