Good morning everyone! I have some problems in a list that in some cases I do not need to return it completely
@OneToMany(mappedBy="local", cascade=CascadeType.ALL, fetch = FetchType.EAGER)
@OrderBy("dataContagem DESC")
private List<Contagem> contagens;
I've tried using the validation constraint @Size and @Max. I am using Hibernate with the JPA specification. Is it possible to perform this limitation of the OneToMany list in the JPQL query?