At first glance your code seems ok, The first place I would check is:
if(numlocs wrote:
>
> The problem is specifically with persisting objects in a many to one
> relationship. The odd thing is that the my code was working fine, and
> then suddenly it was only persisting the objects some of
d whose type can contain the parent key
information: either a Key, or a Key value encoded as a string. See Creating
Data:
Keys<http://code.google.com/appengine/docs/java/datastore/creatinggettinganddeletingdata.html#Keys>
for
information on key field types."
Hope this helps,
Yaniv Kessl