
| Key: |
CORE-2515
|
| Type: |
Task
|
| Status: |
Open
|
| Priority: |
Minor
|
| Assignee: |
Unassigned
|
| Reporter: |
Andy Jefferson
|
| Votes: |
1
|
| Watchers: |
1
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
The JDO2 spec defines the ability to specify fetch groups using field specs including
field1.field2
field1.field2.field3
field1#element
field1#element.field3
|
|
Description
|
The JDO2 spec defines the ability to specify fetch groups using field specs including
field1.field2
field1.field2.field3
field1#element
field1#element.field3
|
Show » |
Sort Order:
|
An example
class A
{
B b;
}
class B
{
C c;
}
and we want to have a fetch group that loads up A.b, and B.c. With the above syntax we would add this for class A
<fetch-group name="group1">
<field name="b"/>
<field name="b.c"/>"
</fetch-group>
however you could easily do
(class A)
<fetch-group name="group1">
<field name="b"/>
</fetch-group>
(class B)
<fetch-group name="group1">
<field name="c"/>
</fetch-group>
Work required to complete this :-
1. Update AbstractPropertyMetaData so that it if a field name of "a.b" is specified it doesnt just put the name as "b".
2. Update FetchGroupMetaData.initialise() so that when encountering a field name specification as above, it finds the class that the field refers to and adds a fetch group of the same name over there (recursive).