[appengine-java] JDO bug - won't persist parent class attributes - has it been fixed?

2009-09-23 Thread Corneliu Paul Lupulet
I remember there was a bug denoted somewhere in the documentation  *
(http://code.google.com/appengine/docs/java/datastore*http://code.google.com/appengine/docs/java/datastore)
that JDO won't persist properties/attributes of the parent classes.
Has
this been fixed in the latest release?

-- 
Corneliu Paul Lupulet

--~--~-~--~~~---~--~~
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] JDO bug - won't persist parent class attributes - has it been fixed?

2009-09-23 Thread Cornel

I remember there was a bug denoted somewhere in the documentation
(http://code.google.com/appengine/docs/java/datastore ) that JDO won't
persist properties/attributes of the parent classes. Has this been
fixed in the latest release?

--
Corneliu
--~--~-~--~~~---~--~~
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] JDO BUG !?

2009-09-04 Thread Cornel

Hello!

I have some objects in the database that have a String property called
version.
Some of them have version = '0.2', the others have '0.0'

I have an application written in java.
When i query for an object with version 0.2 with the low level api it
works (it finds 62 obejcts)

DatastoreService ds = 
DatastoreServiceFactory.getDatastoreService
();
Query q1 = new Query(DbRawContact);
q1.addFilter(version, FilterOperator.EQUAL, 0.2);
PreparedQuery pq = ds.prepare(q1);
log.info(remainging:  + pq.countEntities());

When i query with JDO the query doesn't fetch anything!

I won't post the JDO query here, because i actually use a wrapper
around it (too many lines to post here); but i'm 99.99% sure that code
is correct because it works for a version = '0.0' query with no
problems! (and for all other queries that i'm doing with it)

I even tried to fetch one of those version 0.2 objects using a
different property; was succesful, so then i tried a consecutive query
with version = fetchedObject.getVersion(). No results! What gives? :(
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---