/** * Correlates a join to a Map-valued association or element collection in * the enclosing query to a join object of the subquery and returns the * subquery join object. * * @param parentMap * join target of the containing query * @return subquery join */ public <X, K, V> MapJoin<X, K, V> correlate(MapJoin<X, K, V> parentCollection){ this.correlatedJoins.add(parentCollection); return new MapJoinImpl(parentCollection.getParentPath(), metamodel.managedType(parentCollection.getModel().getBindableJavaType()), metamodel, parentCollection.getJavaType(), internalCorrelate((FromImpl) parentCollection), parentCollection.getModel(), parentCollection.getJoinType(), (FromImpl) parentCollection); }