Don't see updated datastore with entities even the debuging the code passes successfully without errors

霸气de小男生 提交于 2019-12-11 17:27:13

问题


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

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