Finally I found a solution to my own question.
Google store has problem with id/name recognition in java entities
defines as Long:

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;

To solve the this, an import_transform for the bulkloader config is
needed:

import_transform: transform.create_foreign_key('Kind', key_is_id=True)

Done.

On 16 Apr., 14:20, Adam Musial-Bright
<[email protected]> wrote:
> Hello,
>
> for my project I am using GAE datastore to store data. For backup
> purpose I decided to use the bulkloader - which downloads the whole
> data perfectly in a csv file. Also the upload uploads the data fine
> without errors.
> My problem is, that the upload do not update the existing data but
> creates duplicates. Here an example from the datastore viewer:
>
> Before update:
>
> ID/Name
> id=18000
> id=20001
>
> After update:
>
> ID/Name
> id=18000
> id=20001
> name=18000
> name=20001
>
> In the datastore entity I am using this as an data id:
>
> @PrimaryKey
> @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
> private Long id;
>
> Any Idea how I can actually update existing data with bulkloader?
>
> Thanks,
> Adam

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

Reply via email to