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 2013/10/15 21:52:41 UTC
[jira] [Created] (OPENJPA-2438)
EmbedFieldStrategy.containsEmbeddedResult() optimization fails under
certain native sql query conditions
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)