Hi.  I am attempting to leverage the recursionDepth FetchAttribute on one of my 
JPA entity classes, but OpenJPA does not seem to be honoring the value.  Even 
if I specify a recursionDepth of 50, a load of the object graph is only 
returning a recursionDepth of 1.  I am using a FetchGroup on the entity class 
which is referenced from a LoadFetchGroup on the OneToMany reference that I am 
trying to load recursively.  The attached jar file contains a simple JUnit test 
case which illustrates this behavior.  The test case can be run using maven by 
unjarring the attached file and running:

   mvn install

in the openjpa_recursion_test/ directory.  There are comments in the test code 
which describe the issue.  Some additional information on my environment is as 
follows:


-          OpenJPA 1.2.0

-          JDK: Sun 1.6

-          Database: Derby 10.2.2.0

-          OS: Windows XP

It should be noted that this seemed to work  correctly with OpenJPA 1.0.0.  If 
anyone  could help with determining if I am configuring something incorrectly 
or if this is a possible bug in OpenJPA, I'd greatly appreciate it.  Thanks in 
advance.


-          Brian

Attachment: openjpa_recursion_test.jar
Description: openjpa_recursion_test.jar

Reply via email to