• 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic