forked from spring-cloud/spring-cloud-dataflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reuse CriteriaQuery when retrieving result count. (spring-cloud#5702)
When migrating to the latest Hibernate we saw the following exception: ``` Caused by: java.lang.IllegalArgumentException: Already registered a copy: SqmBasicValuedSimplePath ``` This is because we were recreating a CriteriaQuery for our Queries. Hibernate no longer allows us to do that, but rather allows us to use the existing CriteriaQuery, but use the convenience method createCountQuery to provide the criteria query for our createQuery. Also removed 6.1.7 versionfor hibernate core that allows us to use the Boot Bom. This also caused some downstrem issues where dataflow was using the old version brought in from skipper
- Loading branch information
Showing
3 changed files
with
6 additions
and
18 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
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