问题
Datastore is not being updated even there's no errors. My code is:
package com.google.gwt.sample.stockwatcher.server;
import java.util.ArrayList;
import com.google.appengine.api.datastore.DatastoreService;
import com.google.appengine.api.datastore.DatastoreServiceFactory;
import com.google.appengine.api.datastore.Entity;
import com.google.gwt.sample.stockwatcher.client.DelistedException;
import com.google.gwt.sample.stockwatcher.client.StockPrice;
import com.google.gwt.sample.stockwatcher.client.StockPriceService;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
public class StockPriceServiceImpl extends RemoteServiceServlet implements
StockPriceService {
@Override
public String getPrices(ArrayList<StockPrice> stocksData) throws DelistedException {
DatastoreService ds = DatastoreServiceFactory.getDatastoreService();
Entity stock = new Entity("Stock", 1);
stock.setProperty("Stock", "FCB");
ds.put(stock);
return "ahoie";
}
}
What could be the reason for that?
Is here something missing in configuration at eclipse or google app engine online?
I've noticed what it works and shows data locally: 127.0.0.1:8888/_ah/admin But web datastore admin console at https://appengine.google.com is not updated even if I deploy my app to the app engines cloud
来源:https://stackoverflow.com/questions/30441749/dont-see-updated-datastore-with-entities-even-the-debuging-the-code-passes-succ