2
I’m having a hard time searching Google and I can’t find a solution.
I have a note in JPA with a set<>
I want to limit the size of objects inside the set
, that is, the code below:
@OneToMany(mappedBy = "pidAplic", cascade = CascadeType.PERSIST)
@OrderBy("data DESC")
@JsonManagedReference
private Set<ExecAplic> execucoes;
He brings a List
with several objects I want to limit the size to 30.
Hello uaiHebert already tried the size and the Batchsize and both did not work
– paulohddias
But you’re using Session?
– uaiHebert
I am using Hibernate Session
– paulohddias
And with the size? worked?
– uaiHebert
no, I did a go to treat the results
– paulohddias