【发布时间】:2017-04-20 12:37:30
【问题描述】:
我是 angularjs 编程的新手。我正在尝试将数据插入到 Google Cloud 端点 javascript 但我们可以通过创建新类并添加 objectify 在 java 中进行。 如何在 javascript 中使用类对象并使用 objectify @Id 对字符串进行注释。 当我收到“com.googlecode.objectify.SaveException: Error save com.example.mohanvaradarajan.app: Cannot save an entity with a null String @Id: com.example.mohanvaradarajan.app”错误响应时
$scope.callgapi = function () {
$scope.gresult = "Inserting data...";
GApi.execute('myApi', 'insert',datanew).then(function (resp) {
$scope.gresult = resp.result.data;
}, function (resp) {
console.log('Error: (' + resp);
$scope.gresult="An error has occurred.";
});
}
【问题讨论】:
标签: javascript html angular google-app-engine objectify