[appengine-java] Persist/query test.test1.Test and test.test2.Test

2010-01-08 Thread w
I have two persistable classes: test.test1.Test and test.test2.Test, but I can't persist/query objects of these classes right. There is a simple example shows wrong behavior: test.TestServlet.java: package test; import java.io.IOException; import javax.jdo.JDOHelper; import javax.jdo.Persistenc

Re: [appengine-java] Persist/query test.test1.Test and test.test2.Test

2010-01-11 Thread Max Ross (Google)
By default the kind of the datastore entity is derived from the simple name of the class, and test.test1.Test.class.getSimpleName() is the same as test.test2.Test.class.getSimpleName(). This is documented here: http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Class_and_Field_A