Mid-Level
October 4, 2026Spot the bug: Spring Boot
One snippet. Find the bug, or prove there isn't one.
java
1import org.springframework.data.jpa.repository.JpaRepository;
2import org.springframework.data.jpa.repository.Query;
3import java.util.List;
4
5public interface OrderRepository extends JpaRepository<Order, Long> {
6
7 @Query("SELECT o FROM Order o JOIN FETCH o.customer WHERE o.status = :status")
8 List<Order> findByStatusWithCustomer(String status);
9}Click the lines that carry the problem.
Your verdict
One attempt per day. The answer shows up right after.
Keep your streak
Create an account to keep your streak and track your progress.