> You can find information on using inheritance in JDO here:
> http://www.datanucleus.org/products/accessplatform_1_1/jdo/orm/inheritance.html
> Note that app engine _only_ supports the 4th option, "complete-table."
According to that link, this should work to query subclasses:
tx.begin();
Extent e = pm.getExtent(com.mydomain.samples.store.Product.class, true);
Query q = pm.newQuery(e);
Collection c=(Collection)q.execute();
tx.commit();
Is this supported or not. I can't get it to work using
@PersistenceCapable(identityType = IdentityType.APPLICATION)
@Inheritance(customStrategy = "complete-table")
public abstract class TestDN {
...
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public static class TestSubDN extends TestDN {
...
}
}
It's persisting fine and I can retrieve it if I use for example
pm.getObjectById(TestDN.TestSubDN.class, key);
pm.getObjectById(TestDN.class, key); fails though.
this is under 1.2.8
Shawn
--
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.