POJO类的某个属性可以是一个Serializable 类的实例,该属性被保存在Datastore中的数据类型是com.google.appengine.api.datastore.Blob。
该属性需要使用 @Persistent(serialized=true)
批注。
import java.io.Serializable;
public class DownloadableFile implements Serializable {
private byte[] content;
private String filename;
private String mimeType;
// ... accessors ...
}
import javax.jdo.annotations.Persistent;
import DownloadableFile;
// ...
@Persistent(serialized = "true")
private DownloadableFile file;
保存成功后,在Datastore Viewer中看不到该属性(appengine-java-sdk-1.2.2)。而且,com.google.appengine.api.datastore.Text类型的属性,也无法通过
Datastore Viewer查看。估计后续版本会增加该功能。参见:http://groups.google.com/group/google-appengine-java/browse_thread/thread/8c0d4066b07fb273/33f2e4e3fb62891f?lnk=gst&q=jinjiankang1980#33f2e4e3fb62891f
分享到:
相关推荐
NULL 博文链接:https://jinjiankang.iteye.com/blog/436821
NULL 博文链接:https://jinjiankang.iteye.com/blog/429163
Google Datastore的JAR
Android DataStore使用和封装
This practical guide shows intermediate and advanced web and mobile app developers how to build highly scalable Java applications in the cloud with Google App Engine. The flagship of Google's Cloud ...
The journey begins with a look at the Google Plugin for Eclipse and finishes with a working web application that uses Google Web Toolkit, Google Accounts, and Bigtable. Along the way, you’ll dig ...
谷歌云数据存储注意:此存储库包含适用于 Google Cloud Datastore 的低级 Java 和 Python 客户端库。 有关这些语言的更多惯用和可用客户端库,请访问库的库。 您还可以在 Cloud Datastore 的上找到各种语言的受支持...
PB虛擬datastore用法-----------------------------------------------------------------------
Laravel开发-laravel-datastore Laravel数据存储框架。
NULL 博文链接:https://woods.iteye.com/blog/295703
Google APIs Client Library for Java Library Maintenance Overview Highlighted Features Dependencies Important Warnings @Beta Deprecations Documentation Links Library Maintenance These client ...
完整介绍创建datastore,根据条件在datastore中查询数据、取值;将取出的值赋值到新窗体新增行的字段中。
#导言: 在微服务结合前端AJAX越加普遍的今天,以一种没有后端的web开发理念,极大缩小了开发成本,此博客结合这个概念做了一个数据服务原型。 主要有如下特色: 用户只需以JSON格式定义... callbackKey: 'datastore_ca
However, building and deploying scalable web applications using Google Web Toolkit and Google App Engine for Java can be challenging even to developers. The start to finish approach of this book ...
前端开源库-datastore-fs数据存储fs,带有文件系统后端的数据存储实现
一 、DataStore介绍 Jetpack DataStore 是一种改进的新数据存储解决方案,允许使用协议缓冲区存储键值对或类型化对 象。 DataStore 以异步、一致的事务方式存储数据,克服了 SharedPreferences(以下统称为SP)的 ...
适用于Node.js的Cloud Datastore客户端...安装客户端库npm install @google-cloud/datastore使用客户端库// Imports the Google Cloud client libraryconst { Datastore } = require ( '@google-cloud/datastore' ) ;//
Pick the right managed service for your data needs, choosing intelligently between Datastore, BigTable, and BigQuery Migrate existing Hadoop, Spark, and Pig workloads with minimal disruption to your ...
matlab开发-datastore。一种工具,用于在matlab会话之间保存与登录用户相关的数据。
Google Cloud Datastore模拟器 该软件包有助于使用javascript启动/停止 。 从1.1.0版开始,也可以与 docker image一起使用。 包装器会自动拉出主机上不存在的映像,但是我建议在CI脚本的“ before_test”部分中拉出...