How to model a polymorphic relationship in Hibernate 6 for foreign entities with different key types? I have the following tables (pseudocode):