You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Jody Grassel (JIRA)" <ji...@apache.org> on 2014/01/22 22:01:22 UTC

[jira] [Work started] (OPENJPA-2438) EmbedFieldStrategy.containsEmbeddedResult() optimization fails under certain native sql query conditions

     [ https://issues.apache.org/jira/browse/OPENJPA-2438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on OPENJPA-2438 started by Jody Grassel.

> 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.5#6160)