org.hibernate.query.SemanticException Cannot assign expression of type 'java.io.Serializable' to target path 'alias_1388715014.customProperties' of type 'java.util.Map<java.lang.String, java.lang.String>'

Digging into this a bit more it looks like I started seeing this issue when Hibernate version went from 6.1 to 6.2. I saw the hibernate 6.2 migration guide and it does mention something about JSON mapping changes. I am using a postgres DB and the data is stored as jsonb. Looks like someone already raised this too Mapping Jsonb (postgres) in 6.2.3.Final