openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OPENJPA-2438) EmbedFieldStrategy.containsEmbeddedResult() optimization fails under certain native sql query conditions
Date Thu, 17 Oct 2013 14:49:41 GMT

    [ https://issues.apache.org/jira/browse/OPENJPA-2438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13797965#comment-13797965
] 

ASF subversion and git services commented on OPENJPA-2438:
----------------------------------------------------------

Commit 1533094 from [~fyrewyld] in branch 'openjpa/trunk'
[ https://svn.apache.org/r1533094 ]

OPENJPA-2438: EmbedFieldStrategy.containsEmbeddedResult() optimization fails under certain
native sql query conditions

> 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