How to implement custom repository based on JpaRepository in spring?
问题 Context: I used queryDSL in API controller which binds query to the database get. Currently, I have two tables with OneToOne relationship, and we can call them Table A and Table B. If there are 3 rows in A and 2 rows in B, when I get list A with some conditions, and the queryDSL will generate query SQL like A CROSS JOIN B WHERE A.id=B.a_id , but it will miss one item in A. Thus, I am going to implement custom repository to support change join type when generating the SQL statement. The