图2所示是JPA的对象持久化MVC架构。
Figure 2 shows JPA's MVC architecture for object persistence.
JPA:支持对象持久化的“模型-视图-控制器”。
因此没有透明封送这回事,就像没有透明的对象持久化一样。
So there is no such thing as transparent marshalling, in the same way as there is no transparent object persistence.
对开发者来说,让对象持久化就是定义那些应该存储在数据库中的属性。
To the developer, making an object persistent consists of defining those attributes that should be stored in the database.
为了提供对象持久化,我们扩展了对象模型,允许为对象定义持久化属性。
To provide object persistence, we extended the object model to permit the definition of persistence attributes for objects.
当将User对象持久化到底层数据存储时,它将是一个Userkind。
When the User object is persisted to the underlying datastore, it'll be a User kind.
持久化框架较好地解决了关系型数据库的对象持久化问题,对象关系映射是持久化框架的核心内容。
The persistence framework solves the problem of object persistence in relational databases. Object relational mapping is the core of persistence framework.
由于对象模型和关系模型之间存在一种基本的阻抗不匹配,导致使用关系数据库的面向对象系统开发人员通常要花费大量的时间来将对象持久化。
Because a kind of basic mismatch exists between object model and relation model, it leads to that object systematic developer spend a large amount of time taking object persistent.
一种查询方法是,创建持久化对象的一个实例,然后填充需要用搜索条件搜索的字段。
One approach to querying is to create an instance of the persistent object and populate the fields on which to search with the search criteria.
JPA规定对象关系是用持久化特性装饰的。
JPA prescribes that object relationships be decorated with persistence qualities.
资源管理器实现了对象池,它能够获得实现持久化、安全性状态管理和事务的托管资源模式。
The resource manager implements the object pool and it gets the managed resource that implements persistence, security state management, and transaction.
若您关注对象串行化,特别是希望为长期持久性存储使用串行化对象时,就必须对串行化进行测试。
If you care about object serialization, and especially if you intend to use serialized objects for long-term persistent storage, you must test serialization.
可以使用注解指定哪些对象和字段应该持久化,以及它们应该映射到哪些数据库表和字段。
Using annotations, you indicate which objects and fields are persistent and which database tables and columns they map to.
这很让人意外,因为循环引用几乎出现在所有的持久化对象图中。
This is a surprising fact, given that circular references are a common occurrence for almost any persistent object graph.
流作用域的持久化上下文对象将流期间加载的数据作为持久化实体来管理并将数据变更缓存为实体的脏状态。
The flow-scoped persistence-context object manages data loaded during the flow as persistent entities, and data changes cached as the entities' dirty states.
当调用该操作方法时,必须重新使已更新的对象与持久化上下文建立联系。
When the action method is invoked, it is necessary to reattach the updated object to the persistence context, making the changes permanent.
使用本地XML持久化来解决XML,对象和关系数据库的不匹配性。
Uses native XML persistence to solve XML, object, and relational incompatibility.
如何将分离的持久化对象表现为语言无关客户端可使用的资源?
How to represent detached persistent object graphs as resources for language-neutral clients?
如果没有任何注释与给定订单对象相关,那么您可能希望在持久化实体后将该列设为null。
If no comment is associated with a given purchase order object, you might expect this column to be null after persisting the entity.
除了某人请求新的序列号之外,CE服务器还在每次更新持久化对象之后都将USN增加 1。
The CE server increments the USN whenever the persisted object is updated, not just when someone has requested a new sequence number.
当整个文件被解析时,您使用PersistenceManager持久化List中的每个对象。
When the entire document is parsed, you persist each object in the List with the PersistenceManager.
要想获得关于在不同的持久化的对象上指定访问等级的更多信息,参阅persevere服务器文档(参见参考资料)。
Refer to the Persevere server documentation (see Resources) for more information about specifying access levels on different persisted objects.
并且在持久化对象时,如果它们在相同的实体群中,那么它们只能被持久化到相同的原子事务中。
And when you persist objects, they can only be persisted in the same atomic transaction if they are in the same entity group.
注意在其中的某些用例中我们仍然能够使用流作用域的持久化上下文对象。
Note that in some of these use cases we are still able to use the flow-scoped persistence-context object.
定义一个支持持久化对象的对象模型的过程与定义任何对象模型相同。
Defining an object model to support persistent objects is the same process as defining any object model.
你将只需声明持久化的根对象,然后将对象放入根对象。
You will just declare the persistent roots and put objects into them.
我记得有一次,我们在谈持久化对象存储的事情,说来说去都是对象的序列化和访问机制。
I remember on one occasion, we were talking about building a persistent object store. It was all about object serialization and access mechanisms.
一个客户端可以向服务器请求持久化对象,然后服务器以分离对象图的方式将它们返回。
A client can request persistent objects from the server, and the server sends them as a graph of detached objects.
对象持久性依赖于底层编程语言的对象序列化能力。
Object persistence depends on the object serialization capabilities of the underlying programming language.
对象持久性依赖于底层编程语言的对象序列化能力。
Object persistence depends on the object serialization capabilities of the underlying programming language.
应用推荐