Also happens with Postgresql and Hibernate 5.0.8 -> all queries for the child object fails if there is a @MapKeyJoinColumn based relation in the parent object. This worked fine in v4.3