When I call the findAll() function in the result I get all the relation so I need to select the same columns. In Laravel they are used with() to resolve problm so What is the equivalent of the Laravel function in spring boot
1 Replies
You can use projections from Spring Data JPA (doc). In your case, create an interface:
interface ProjectIdAndName{
String getId();
String getName();
}
and add the following method to your repository
List<ProjectIdAndName> findAll();