Relative Content

Tag Archive for spring-bootjparepositoryleft-join

Spring JPA Repository Left Outer Join

Hello I am trying to develop a solution using JPA Repositories to force a left outer join instead of an inner join. I am trying to do a query essentially to get all items in Table1 even if the join returns a null in table 2. When doing a basic CrudRepository call findAll, the inner join is used instead of the left join. Please note, I am only using this for view purposes only so I am thinking a unidirectional is ok. Any suggestions on how to use a left join to do this?