JPA - left join 2 tables without association
You cannot do that in JPA, as long as there is no relationship between the entities.
Solutions:
- Use Native queries.
- Add a relationship between them (eventually an indirect lazy one). With indirect I mean something like : A knows PseudoEntity, PseudoEntity knows B (but the relationship owner is entity B), B knows PseudoEntity.