I have this query where I have to pass a list and say if it exists. The question is for the use of IN in the bus, does it have to go in front or behind? If it is behind, why?
boolean existsByUserAndBusInAndCar(String User, List<String> bus, Car car);
The best thing in these cases is to check the documentation of the syntax for creating queries with
spring-data
, I add the link to the documentation:As you can see from the example
findByAgeIn(Collection<Age> ages)
the clauseIN
is placed after the field.