I have 2 tables/entities with no association. I can go for cross joins in JPA
FROM A as a, B as b WHERE b.col1=a.col1
How Can I perform a left-join?
I want all values from A and fill them up with B values where possible and leave NULL where there is no B.
Does not work:
FROM A as a LEFT JOIN B as b WHERE b.col1=a.col1
Path expected for join!
Invalid path: 'b.col1'
Apparently you can now do this as of Hibernate 5.1
You cannot do that in JPA, as long as there is no relationship between the entities.
Solutions:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With