In my code I want to receive a list of 'Food' but when coloring the parameter where you are going to deposit the answer I do not know what to put When I put an ArrayList I get an error when creating the repository how can I receive the list and then place it in an arrayList?
package pe.edu.idat.matricula.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import pe.edu.idat.matricula.model.Comida;
@Repository
public interface ComidaRepository extends JpaRepository<*???*, String>{
@Query(value="SELECT * FROM comida WHERE nombre LIKE %:valor%", nativeQuery=true)
*???* obtenerComidas(@Param("valor")String valor);
}