我有一個自定義對象,我想保存在數據存儲區(而不是blobstore)。 喜歡的東西Google App Engine低級別API - 將自定義對象保存爲Blob?
Entity.setProperty("myobj", custonObject)
我有這個customObject
public user class{
String name;
String age;
}
public user_s class{
List<user> userList;
public user_s(){
userList = new ArrayList<user>();
}
}
那麼我想保存user_s內的用戶列表。
我想我需要一些序列化,如果可能的話。我可以看到數據存儲中有一個Blob類,但是如何使用它? https://developers.google.com/appengine/docs/java/datastore/entities
問候
你確定,你在談論Java嗎? –
我同意Moritz,請以更好的方式問你的問題,你問Blob Class並共享保存List對象的代碼。 –