If you use this: http://code.google.com/p/remote-datastore/ you can upload Entities in a main(String[]) using the simple low-level API. If your data is in CSV format you'll need to parse the file lines to create your Entities.

On 4 Aug 2010, at 16:51, Dani wrote:

Hi, i'm trying to upload to my app an entity with a field which is a
list of keys. How can i do it?

I tryed to separate it with comas and wrap it with double quotes,
like:

key,extensions,name,number
1,"34,56",John Doe,699

And the config.yml:

kind: Zone
 connector: csv
 connector_options:
 property_map:
   - property: __key__
     external_name: key
     export_transform:
transform.none_if_empty(transform.key_id_or_name_as_string)

   - property: extensions
     external_name: extensions
     import_transform:
transform.none_if_empty(transform.create_foreign_key('Extension'))
     export_transform: transform.key_id_or_name_as_string
     ...


But it's interpreted like a single Key and not a list of Keys.
Anybody knows?

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


--
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-j...@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