I'm having trouble finding Google and have not found a solution.
I have a note in JPA with a set<>
I want to limit the size of objects within set
, ie the code below:
@OneToMany(mappedBy = "pidAplic", cascade = CascadeType.PERSIST)
@OrderBy("data DESC")
@JsonManagedReference
private Set<ExecAplic> execucoes;
It brings a List
with multiple objects I want to limit the size to 30 .