This question is locked. New answers and comments are not allowed.
i want to us FetchStrategy class to load of specified related data, and I have read the manual, but there are still some problems.
example :
Package, PackageItem,Sample,TestRequest
the relation of Package and PackageItem is one to multi;
the relation of PackageItem and Sample is one to multi;
the relation of Sample and TestRequest is one to multi;
1. when i get Package data,it can load PackageItem data and Sample data(The value of the MaxFetchDepth must be greater than 0 and the default one is 3.). it's normal,I can understand.
2. when i get PackageItem data,it can load Sample data and TestRequest data. it's normal,I can understand.
3.but if i do step 1 after i have done step2,then all of the Package data, PackageItem data ,Sample data and TestRequest data will be loaded.i don't set any FetchStrategy Class to Context,at this time. Why???
4.whether step 1 or step 2,it's still load three depth data,no matter whether I set MaxFetchDepth = 1.Why???
my english is very poor,i hope I have expressed it clearly.
,
example :
Package, PackageItem,Sample,TestRequest
the relation of Package and PackageItem is one to multi;
the relation of PackageItem and Sample is one to multi;
the relation of Sample and TestRequest is one to multi;
1. when i get Package data,it can load PackageItem data and Sample data(The value of the MaxFetchDepth must be greater than 0 and the default one is 3.). it's normal,I can understand.
2. when i get PackageItem data,it can load Sample data and TestRequest data. it's normal,I can understand.
3.but if i do step 1 after i have done step2,then all of the Package data, PackageItem data ,Sample data and TestRequest data will be loaded.i don't set any FetchStrategy Class to Context,at this time. Why???
4.whether step 1 or step 2,it's still load three depth data,no matter whether I set MaxFetchDepth = 1.Why???
my english is very poor,i hope I have expressed it clearly.
,