Intermedio
4 ottobre 2026Trova il bug: Spring Boot
Uno snippet di codice. Trova il bug, o dimostra che non ce n'è.
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}Clicca sulle righe che causano il problema.
Il tuo verdetto
Un tentativo al giorno. La risposta appare subito dopo.
Mantieni la tua serie
Crea un account per conservare la tua serie e seguire i tuoi progressi.