Hi, I am new to JDO! Sorry if this is a repeated post, but i could not find
out nothing with an answer to my problem.
I am trying to model the following strutucre:
class A{ private ArrayList <B> listB; }
class B{ private LinkedList<C> listC; }
Note: the fields (listB and listC) are marked
with @Persistent(defaultFetchGroup = "true")
Problem:
I retrieve a "A" object and than detach it. I can acess the listB field just
fine, but when i try to acess the working hours, i get the following error:
"javax.jdo.JDODetachedFieldAccessException: You have just attempted to
access field "listC" yet this field was not detached when you detached the
object. Either dont access this field, or detach it when detaching the
object."
I checked the console and noticed the following warnings:
"WARNING: Meta-data warning for datastore.objects.A.listB: The datastore
does not support joins and therefore cannot honor requests to place related
objects in the default fetch group. The field will be fetched lazily..."
"WARNING: Meta-data warning for datastore.objects.B.listC: The datastore
does not support joins and therefore cannot honor requests to place related
objects in the default fetch group. The field will be fetched lazily..."
Wich is weird, as i can access listB just fine. The error apears when i try
to access listC.
Does anyone know what is going on?
Any help would be appreciated! Thanks in advance
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.