[
https://issues.apache.org/jira/browse/OPENJPA-1112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Catalina Wei resolved OPENJPA-1112.
-----------------------------------
Resolution: Fixed
Two cases should be distinguished (using an example, in which Address is
embedded within Employee):
a) where the owning instance of an embddable is also in the query result :
(1) select e, e.address from Employee e
or
(2) select e.address, e from Employee e
b) where the owning instance of an embddable is not in the query result:
(3) select e.address from Employee e
In the above 3 queries, the result of selection 'e.address' are non-managed
embeddable object that can not be further updated. The result of selection 'e'
contains embeddable address that are managed and are update-able.
If DataCache/QueryCache are enable, non-managed embeddables are not cached in
DataCache but cached in QueryCache.
> JPA2 Query result of embeddable object can not be further updated
> -----------------------------------------------------------------
>
> Key: OPENJPA-1112
> URL: https://issues.apache.org/jira/browse/OPENJPA-1112
> Project: OpenJPA
> Issue Type: Sub-task
> Reporter: Catalina Wei
> Assignee: Catalina Wei
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.