Apache JDO Project - Re: JDO2 §12.7.2: fetch-depth only for "recursive fetch group references"?

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > September 2005 > Re: JDO2 §12.7.2: fetch-depth only for "recursive fetch group references"?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: JDO2 §12.7.2: fetch-depth only for "recursive fetch group references"?
Andy Jefferson

2005-09-26, 5:45 pm

Hi Michael,

> I read the spec that a self-referencing relationship (meaning the field
> type is the same class that declares the field) is a good use case for
> the fetch-depth attribute. But I think the use of fetch-depth is not
> restricted to self-referencing relationships. Am I wrong here?


I agree. I interpret fetch-depth as being for "recursive references" (as the
spec says). This encompasses
1. self-referencing (A->A->A->... )
2. circular-referencing (e.g A->B->C->A->B->C->.....)

This is what JPOX aims to support.
The examples in the JDO2 spec are, incidentally, only of the self-referencing
type.


--
Andy

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com