Closed sebasira closed 1 year ago
Hi! Could you please provide a basic example reproducing the issue? You can fork the project here: https://github.com/darrachequesne/spring-data-jpa-datatables-sample/
A few things that I can think of:
@ManyToMany(fetch = FetchType.EAGER)
?spring.jpa.properties.hibernate.show_sql=true
?Related: https://github.com/darrachequesne/spring-data-jpa-datatables/issues/87
Closed due to inactivity, please reopen if needed.
I having and issue with an Entity that has a
@ManyToMany
association. It's aStore
and aStoreCategory
many stores can be associated to many categories.I have an
Specification
to search (like) the associated categories. And after:I have this:
As you can see i have 2 recordsTotal and 3 recordsFiltered so after filtering I have more records than the total. And as you can see, items 0 and 1 are the same Entity.
What I'm doing to solve this is remove duplicates like this:
Is this a bug or am I doing something wrong?