In one of my hibernate entity I have the following attribute
@MapKeyColumn(name = "block_id") @Column(name = "target_id") @JdbcTypeCode(java.sql.Types.VARCHAR) private Map<UUID, UUID> variantMapping = new HashMap<>();
We store this map as an external table and store the uuid as
However when using this attribute I have the error
Cannot cast String as UUID.
Any idea how I could make this work ? I’m using hibernate 6.2.3