Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Outer Join in JPA without a relation

 
John Bengler
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I've a question: I have two EJB3 entities without a relation between them, let's say EntityA and EntityB..

Is it possible to write a JPA query using an Outer Join between these tables/entites without defining a relation in the entity classes?
I know it is possibleto write a native SQL query, but I really would prefer JPA..


In native SQL I would write something like



Thanks!

John
 
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
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!