If an entity maps a field and the discriminator on the same column, the entity persister tries to use the same value persister for both the discriminator and the field, which causes problems if the field is mapped using a different type. A simplified example of the situation is:
Where MarketId has a JavaType registered in the type contributions. If I try do read an instance from the database I get the following exception:
|