mirror of https://github.com/apache/openjpa.git
OPENJPA-1184 Inverse relations not set for MapKey field when using parallel eager select. Patch contributed by David Minor.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@795949 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f74c5d7a69
commit
048419e89b
|
@ -29,6 +29,7 @@ import java.util.Collection;
|
|||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
@ -408,6 +409,8 @@ public class JDBCStoreManager
|
|||
for (int i = 0; i < fms.length; i++) {
|
||||
if (res.getEager(fms[i]) != null) {
|
||||
Object coll = owner.fetchObject(fms[i].getIndex());
|
||||
if (coll instanceof Map)
|
||||
coll = ((Map)coll).values();
|
||||
if (coll instanceof Collection &&
|
||||
((Collection) coll).size() > 0) {
|
||||
// Found eagerly loaded collection.
|
||||
|
|
Loading…
Reference in New Issue