[appengine-java] Re: Cannot retrieve value of the newly created attribute in a JDO
I have some problems with making some ArrayList attributes persistent,i wonder whether these two problem have some similarities. Would you tell me how u fixed it or can u help me to fix my own? please. On Nov 7, 4:59 pm, delightwjk wrote: > I have fixed this problem. Thanks. > > On Nov 6, 11:05 am, delightwjk wrote: > > > Thank you Jorge, > > > I checked the document you mentioned, but i'm still not sure what is > > the reason of my issue. I added a field inJDO(Boolean successFlag), > > and stored several entities in datastore, I was able to see the > > entities with successFlag property from admin console "Datastore" -> > > "Data Viewer", and the values of successFlag properties were correct. > > The entities have the property successFlag with correct value, and the > >JDOclass has the corresponding field, but why I could not retrieve > > the values of successFlag viaJDO? > > > Jiakuan > > > On Nov 5, 9:57 pm, Jorge wrote: > > > > You may want to check the rules that apply in this case as documented > > > at the bottom of this page:: > > > http://code.google.com/appengine/docs/java/datastore/dataclasses.html > > > > Jorge Gonzalez > > > > On Nov 4, 8:06 am, delightwjk wrote: > > > > > Hi All, > > > > > I created aJDOclass, which had some attributes, and I created some > > > > CRUD operations, all of them worked correctly. > > > > > Then I added a new attribute in theJDOclass, and then set value to > > > > it and persisted it as usual when I executed CRUD operations. The > > > > problem is that I cannot retrieve the value of the new attribute in > > > > program, the value is always null. But when I check the value in > > > > "Datastore" -> "Data Viewer", the value is correct. So i'm wondering > > > > why it cannot be retrieved in application. Is there some cache > > > > mechanism? > > > > > Thanks in advance! > > > > Jiakuan -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=.
[appengine-java] Re: Cannot retrieve value of the newly created attribute in a JDO
Would you share the solution with us? please On Nov 7, 3:59 am, delightwjk wrote: > I have fixed this problem. Thanks. > > On Nov 6, 11:05 am, delightwjk wrote: > > > Thank you Jorge, > > > I checked the document you mentioned, but i'm still not sure what is > > the reason of my issue. I added a field in JDO (Boolean successFlag), > > and stored several entities in datastore, I was able to see the > > entities with successFlag property from admin console "Datastore" -> > > "Data Viewer", and the values of successFlag properties were correct. > > The entities have the property successFlag with correct value, and the > > JDO class has the corresponding field, but why I could not retrieve > > the values of successFlag via JDO? > > > Jiakuan > > > On Nov 5, 9:57 pm, Jorge wrote: > > > > You may want to check the rules that apply in this case as documented > > > at the bottom of this page:: > > > http://code.google.com/appengine/docs/java/datastore/dataclasses.html > > > > Jorge Gonzalez > > > > On Nov 4, 8:06 am, delightwjk wrote: > > > > > Hi All, > > > > > I created a JDO class, which had some attributes, and I created some > > > > CRUD operations, all of them worked correctly. > > > > > Then I added a new attribute in the JDO class, and then set value to > > > > it and persisted it as usual when I executed CRUD operations. The > > > > problem is that I cannot retrieve the value of the new attribute in > > > > program, the value is always null. But when I check the value in > > > > "Datastore" -> "Data Viewer", the value is correct. So i'm wondering > > > > why it cannot be retrieved in application. Is there some cache > > > > mechanism? > > > > > Thanks in advance! > > > > Jiakuan -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Cannot retrieve value of the newly created attribute in a JDO
I have fixed this problem. Thanks. On Nov 6, 11:05 am, delightwjk wrote: > Thank you Jorge, > > I checked the document you mentioned, but i'm still not sure what is > the reason of my issue. I added a field in JDO (Boolean successFlag), > and stored several entities in datastore, I was able to see the > entities with successFlag property from admin console "Datastore" -> > "Data Viewer", and the values of successFlag properties were correct. > The entities have the property successFlag with correct value, and the > JDO class has the corresponding field, but why I could not retrieve > the values of successFlag via JDO? > > Jiakuan > > On Nov 5, 9:57 pm, Jorge wrote: > > > You may want to check the rules that apply in this case as documented > > at the bottom of this page:: > > http://code.google.com/appengine/docs/java/datastore/dataclasses.html > > > Jorge Gonzalez > > > On Nov 4, 8:06 am, delightwjk wrote: > > > > Hi All, > > > > I created a JDO class, which had some attributes, and I created some > > > CRUD operations, all of them worked correctly. > > > > Then I added a new attribute in the JDO class, and then set value to > > > it and persisted it as usual when I executed CRUD operations. The > > > problem is that I cannot retrieve the value of the new attribute in > > > program, the value is always null. But when I check the value in > > > "Datastore" -> "Data Viewer", the value is correct. So i'm wondering > > > why it cannot be retrieved in application. Is there some cache > > > mechanism? > > > > Thanks in advance! > > > Jiakuan --~--~-~--~~~---~--~~ 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 google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Cannot retrieve value of the newly created attribute in a JDO
Thank you Jorge, I checked the document you mentioned, but i'm still not sure what is the reason of my issue. I added a field in JDO (Boolean successFlag), and stored several entities in datastore, I was able to see the entities with successFlag property from admin console "Datastore" -> "Data Viewer", and the values of successFlag properties were correct. The entities have the property successFlag with correct value, and the JDO class has the corresponding field, but why I could not retrieve the values of successFlag via JDO? Jiakuan On Nov 5, 9:57 pm, Jorge wrote: > You may want to check the rules that apply in this case as documented > at the bottom of this page:: > http://code.google.com/appengine/docs/java/datastore/dataclasses.html > > Jorge Gonzalez > > On Nov 4, 8:06 am, delightwjk wrote: > > > Hi All, > > > I created a JDO class, which had some attributes, and I created some > > CRUD operations, all of them worked correctly. > > > Then I added a new attribute in the JDO class, and then set value to > > it and persisted it as usual when I executed CRUD operations. The > > problem is that I cannot retrieve the value of the new attribute in > > program, the value is always null. But when I check the value in > > "Datastore" -> "Data Viewer", the value is correct. So i'm wondering > > why it cannot be retrieved in application. Is there some cache > > mechanism? > > > Thanks in advance! > > Jiakuan --~--~-~--~~~---~--~~ 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 google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---