#вопрос
Spring Data JPA
public interface OrderRepo extends CrudRepository<Order, Integer> {
// 1. Все заказы клиента.
@Query("select id from order_item where order_id in (select id from orders where customer_id=:customerId)")
public Iterable<Integer> findByCustomerId(
@Param("customerId") int customerId);
}
Получаю вот такое сообщение: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orderRepo': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: Validation failed for query for method public abstract java.lang.Iterable com.example.shop.repositories.OrderRepo.findByCustomerId(int)!
Скажите, пожалуйста, как истолковать, на что он ругается?