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 Tue, 15 Oct 2013 19:54:41 GMT

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

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

Commit 1532504 from [~fyrewyld] in branch 'openjpa/branches/2.2.1.x'
[ https://svn.apache.org/r1532504 ]

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