-
Notifications
You must be signed in to change notification settings - Fork 690
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: EXPOSED-485 ClassCastException when eager loading referrersOn wi…
…th uuid().references() (#2198) * fix: EXPOSED-485 ClassCastException when eager loading referrersOn with uuid().references() Using Column.references() invoked on a UUIDColumnType that targets an EntityIDColumnType<UUID> causes a ClassCastException when referrersOn or backReferencedOn are eager loaded, for the same type mismatch as detailed in the previous related issues. This extends the previous fix to include Referrers and BackReference objects in preloadRelations(), by forcing the query clause to use the underlying/wrapped type of EntityIDColumnType if there is a type mismatch between refColumn.referree and refIds. * test: Add corresponding test in `UIntIdTableEntityTest` and `ULongIdTableEntityTest` --------- Co-authored-by: Jocelyne <jocelyne.abihaidar@jetbrains.com>
- Loading branch information
Showing
6 changed files
with
117 additions
and
11 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
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