开发者

BulkLoader -export_transform

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.

开发者_StackOverflow中文版

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


Try export_transform: datastore.Key.name

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜