HHH-8949 @QueryHint( name="javax.persistence.cache.retrieveMode", value="<valid value>") does not work
HHH-9142 fixed a bug where joining to a non-class-based entity (EntityMode.MAP) would fail, added regression test.