Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.0-BETA1
-
Fix Version/s: 2.x
-
Component/s: None
-
Security Level: All
-
Labels:None
Description
Assuming:
Customer <onetoone> Cart
where Cart is the owning side.
Since the association from Customer to Cart can not be lazy, it would make sense to leave out the association in a query to avoid loading the carts like this:
select partial c.{id,name, ... anything except cart} from Customer c"
But this is ignored and the carts of all customers are fetched anyway. Query::HINT_FORCE_PARTIAL_LOAD is an alternative solution, however it has the disadvantage that it disables lazy-loading for all queried objects. If partial querying would honor associations this would allow more fine-grained control.
Issue Links
- is duplicated by
-
DDC-1465
Fetching partial objects doesn't work if HINT_FORCE_PARTIAL_LOAD is not explicitly used
-
Activity
Roman S. Borschel
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Affects Version/s | 2.0-BETA1 [ 10030 ] | |
| Priority | Minor [ 4 ] | Major [ 3 ] |
Roman S. Borschel
made changes -
| Fix Version/s | 2.0-RC1 [ 10091 ] | |
| Fix Version/s | 2.0 [ 10021 ] |
Benjamin Eberlei
made changes -
| Fix Version/s | 2.1 [ 10022 ] | |
| Fix Version/s | 2.0-RC1 [ 10091 ] |
Benjamin Eberlei
made changes -
| Fix Version/s | 2.x [ 10090 ] | |
| Fix Version/s | 2.1 [ 10022 ] |
Benjamin Eberlei
made changes -
| Workflow | jira [ 11442 ] | jira-feedback [ 13853 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback [ 13853 ] | jira-feedback2 [ 15717 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback2 [ 15717 ] | jira-feedback3 [ 17974 ] |