openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jody Grassel (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OPENJPA-2438) EmbedFieldStrategy.containsEmbeddedResult() optimization fails under certain native sql query conditions
Date Tue, 15 Oct 2013 19:52:41 GMT
Jody Grassel created OPENJPA-2438:
-------------------------------------

             Summary: EmbedFieldStrategy.containsEmbeddedResult() optimization fails under
certain native sql query conditions
                 Key: OPENJPA-2438
                 URL: https://issues.apache.org/jira/browse/OPENJPA-2438
             Project: OpenJPA
          Issue Type: Bug
          Components: jdbc
    Affects Versions: 2.2.2
            Reporter: Jody Grassel
            Assignee: Jody Grassel


The optimization within EmbedFieldStrategy.containsEmbeddedResult() is designed to fast-exit
when it encounters an eager-loaded Embeddable field that is not in the ResultSet, which causes
the Embeddable to be treated as unloaded.  This behavior can conflict with a native query
that selectively excluded fetching embeddable fields that are normally eager, resulting in
the whole embeddable being null rather than partially hydrated by the native sql query's ResultSet.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message