JetBrains / Exposed

Kotlin SQL Framework
http://jetbrains.github.io/Exposed/
Apache License 2.0
8.05k stars 674 forks source link

fix: EXPOSED-411 ClassCastException when `uuid().references()` is used with `referrersOn` #2127

Closed joc-a closed 2 weeks ago

joc-a commented 2 weeks ago

This fix allows using referrersOn or backReferencedOn in the parent table when a column of type T in the child table references a column of type EntityID<T> in the parent table.

This use case was not working even before any refactor was done. The location from which the error is coming is different now after the type safety refactor, but it's essentially the same problem: the type mismatch.