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

using attributes from different tables in the mapping/annotation  RSS feed

 
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?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!