0
respostas

Erro: member of operator must be a plural path

Ao tentar rodar o código para localizar os atores é disparado uma exception SemanticException: Operand of 'member of' operator must be a plural path.

  List<Series> findByActorsContainingIgnoreCase(String name);

Essas são minhas entidades:

public class Episode {

  @Id
  @GeneratedValue(strategy = GenerationType.UUID)
  private UUID id;
  @Length(min = 1, max = 255)
  private String title;
  @ManyToOne
  @JoinColumn(name = "series_id", nullable = false)
  private Series series;
  private Integer season;
  private Integer number;
  private Double rating;
  private LocalDate releasedAt;
  }
public class Series {

  @Id
  @GeneratedValue(strategy = GenerationType.UUID)
  private UUID id;
  @Length(min = 1, max = 255)
  @Column(unique = true, nullable = false)
  private String title;
  private List<String> genres;
  private List<String> actors;
  @Length(min = 1, max = 255)
  private String poster;
  @Length(min = 1, max = 255)
  private String plot;
  private int totalSeason;
  private double rating;
  @OneToMany(mappedBy = "series", cascade = CascadeType.ALL)
  private List<Episode> episodes = new ArrayList<>();
  }

Obs: Estou usando Lombok e Gson no decorrer do curso.

Garanta sua matrícula hoje e ganhe + 2 meses grátis

Continue sua jornada tech com ainda mais tempo para aprender e evoluir

Quero aproveitar agora