mirror of https://github.com/apache/openjpa.git
OPENJPA-835 Loading nested toMany EAGER relation resuled in PersistenceException
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727895 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
574d559860
commit
0500645b7a
|
@ -355,7 +355,9 @@ public class JDBCStoreManager
|
||||||
getMappedByFieldMapping();
|
getMappedByFieldMapping();
|
||||||
Object mappedByObject = info.result.getMappedByValue();
|
Object mappedByObject = info.result.getMappedByValue();
|
||||||
if (mappedByFieldMapping != null && mappedByObject != null)
|
if (mappedByFieldMapping != null && mappedByObject != null)
|
||||||
if (mappedByObject instanceof OpenJPAId)
|
if (mappedByObject instanceof OpenJPAId &&
|
||||||
|
mapping.getExtraFieldDataIndex(mappedByFieldMapping.
|
||||||
|
getIndex()) != -1)
|
||||||
// The inverse relation can not be set since
|
// The inverse relation can not be set since
|
||||||
// we are eagerly loading this sm for
|
// we are eagerly loading this sm for
|
||||||
// a sm owner that is still in the process of
|
// a sm owner that is still in the process of
|
||||||
|
|
Loading…
Reference in New Issue