BulkLoader -export_transform

2019-08-21 02:18发布

I have created web application using java.I wantted to download data from appengine datastroe so that I am using BulkLoader concept.

In my project I designed entity as follows

@Id

@GeneratedValue(strategy = GenerationType.IDENTITY)

private Long school_id;

@Basic

private String schoolname;

After that I tried to download data so that I created bulkloader configuration file .It created successfully but I that default auto generated bulkloade.yaml file I have one problem(i.E)export-transform convert Primary key into string, but I need Long datatype how to achieve this.

The content of bulkloader file is

- kind: School

  connector: csv

  property_map:

    - property: __key__

      external_name: key

      export_transform: transform.key_id_or_name_as_string

    - property: schoolname

      external_name: schoolname

How to solve this Thanks in advance

1条回答
\"骚年 ilove
2楼-- · 2019-08-21 02:57

Try export_transform: datastore.Key.name

查看更多
登录 后发表回答