-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix integration with Spring Boot 3
The library creates the following queries: - 1 count query (unfiltered, to compute the "recordsTotal" field) - 1 data query (filtered) - 1 optional count query (filtered), if the data query returns a complete slice, in order to compute the "recordsFiltered" field Before this commit, when the optional count query ran, DataTablesSpecification.toPredicate() was called a second time and reused the globalPredicates array, triggering one of the following error: > java.lang.IllegalArgumentException: Already registered a copy > jakarta.persistence.PersistenceException: Converting org.hibernate.sql.ast.SqlTreeCreationException to JPA PersistenceException : Could not locate TableGroup Related: #150
- Loading branch information
1 parent
e53eb8c
commit a6a8a0d
Showing
2 changed files
with
39 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters