Hi Stuart,

I'm not sure why this would be happening. Your best option might be to
insert a record using Java, then check how it shows up in the admin console,
and make sure to use the exact same name for the kind you use in the Java
loader.

-Nick Johnson

On Wed, Nov 4, 2009 at 6:25 PM, Stuart Moffatt <stuartmoff...@gmail.com>wrote:

> Maybe I didn't word my problem very well.
>
> Let me describe it again:
>
> Data push:
> 1. I am bulkloading data to an app using python appcfg and custom
> bulkloaders.
> 2. The custom bulk loaders are pushing data from a CSV.
> 3. The models of the data being pushed have simple names in python (no
> package namespace)
> 4. The entities all get successfully uploaded.
>
> Data query:
> 1. The application that uses the data pushed via bulk loading is in
> Java
> 2. Because it's in Java, there is a package namespace for where my
> entity classes exist
> 3. App Engine is supposed to ignore the long package namespace and
> just pick up the simple name (ie, the name of the class)
> 4. These simple names are supposed to match the simple names of the
> data that was pushed via bulk loading.
>
> The problem:
> 1. Queries for the simple name via the admin interface return data as
> expected
> 2. Queries for the simple name via Java code do NOT return data as
> expected. Instead I get a JDO error about the class not being found
> (sorry, don't have my code in front of me to list the trace).
> Basically, it seems that a query for a simple name throws an error
> when that simple class name exists in a fully named package.
>
> I am using JDO annotations in my classes as per the tutorials. Is
> there some magic that I am missing? Perhaps I am doing something wrong
> with my annotations?
>
> I would rather post details, but wanted to get a handle on the general
> problem before I bog down the list with a stack trace and entity code.
>
> Stuart
>
> On Nov 3, 5:06 pm, Stuart Moffatt <stuartmoff...@gmail.com> wrote:
> > I am using Nick's excellent tutorials on bulk loading, and was able to
> > push a huge pile of entities up to production. Problem is, they looked
> > like this:
> >
> > MySpecialEntity
> >
> > in my custom python bulkloader class and in production.
> >
> > The gotcha is my application is Java, and queries for:
> >
> > SELECT FROM org.domain.app.MySpecialEntity
> >
> > fail because the Javanamespacewas not part of the python bulkloader.
> >
> > Anyone know a workaround?
> >
> > Stuart
>



-- 
Nick Johnson, Developer Programs Engineer, App Engine
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to