Hi All,
I have followed the instructions on how to create the appropriate
classes for JUnit testing and have a fairly simple object hierarchy. I
have one class that includes a few embedded objects, they are all
correctly annotated with JDO annotations (i have compared them
directly to the example jdo classes that ship with GAE). I create an
instance of the parent object, set all the fields including the
embedded ones, then used the PersistenceManager to make the instance
persisted. When i query for all instances of the class, I get back the
right number of instances, the non-embedded fields are there, but all
of the embedded fields have null values.
I also tried writing a simple test using the AddressBookEntry class,
and see the same behavior when looking in the debugger, that code is
as follows:
@Test
public void testAddy(){
AddressBookUtils.insertNew
("John","Doe","Hart","CT","8448445");
PersistenceManager pm = PMF.get().getPersistenceManager();
Query q = pm.newQuery(AddressBookEntry.class);
List l = (List) q.execute();
}
Anyone have any pointers on how to resolve this?
Thanks!
--
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=.