You can modify an object after the PersistenceManager has been closed
by declaring the class as "detachable." To do this, add the detachable
attribute to the @PersistenceCapable
annotation:
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable="true")
public class Employee {
// ...
}
在我本机,按上述修改后,在pm.close();之后设置em.setFirstName("fffffffff");,但是,查看Datastore Viewer却发现firstName并不是"fffffffff",很奇怪?!
谁有不同结果请留言,谢谢。
分享到:
相关推荐
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,带有文件系统后端的数据存储实现
matlab开发-datastore。一种工具,用于在matlab会话之间保存与登录用户相关的数据。
一 、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 ...
Google Cloud Datastore模拟器 该软件包有助于使用javascript启动/停止 。 从1.1.0版开始,也可以与 docker image一起使用。 包装器会自动拉出主机上不存在的映像,但是我建议在CI脚本的“ before_test”部分中拉出...