问题
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