How to create a setter for a GeoPt field of a JDO entity in App Engine datastore such that it shows up in the endpoint client library?

≯℡__Kan透↙ 提交于 2019-12-25 06:53:04

问题


I have a GeoPt field for a JDO entity on App Engine and I created the following setter for it:

public void setLocation(Float latitude,Float longitude){
    location=new GeoPt(latitude, longitude);
}

However, when I generate the Cloud Endpoints client library through Google Plugin for Eclipse, this method does not show up in the list of methods available for this entity.

How should I modify the setter such that the client library creates an endpoint for it?

来源:https://stackoverflow.com/questions/24499347/how-to-create-a-setter-for-a-geopt-field-of-a-jdo-entity-in-app-engine-datastore

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!