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:
Catalina Wei 2008-12-19 02:17:36 +00:00
parent 574d559860
commit 0500645b7a
1 changed files with 3 additions and 1 deletions

View File

@ -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