• Post Reply Bookmark Topic Watch Topic
  • New Topic

OpenJPA Joins vs Mappings

Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am using OpenJPA and right now, I have defined all the relationships(One-To-Many etc relationships) in my code. My Table1 Pojo class basically has this:

and using the xyz set, I am able to get Table2's instances and properties values of each instance. I am wondering now, why would I need to do join and all if I able to get the values this way? Please advice.

What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!