• Start the transaction scope within the EntityManager.

    EntityManager启动事务范围

    youdao

  • The EntityManager contains the necessary methods for accessing data.

    EntityManager包含访问数据必要方法

    youdao

  • Create the grid and perform data access using the EntityManager API.

    创建网格使用EntityManagerAPI执行数据访问

    youdao

  • By default, the EntityManager saves data to the embedded HSQL database.

    默认地,EntityManager数据存于嵌入的HSQL数据库中。

    youdao

  • Another important rule to follow is the entitymanager-per-request pattern.

    另一个遵循重要规则就是entitymanager - per - request模式。

    youdao

  • Create data classes and a utility class for getting an EntityManager instance.

    创建数据一个实用类来获取EntityManager实例。

    youdao

  • Line 1 obtains an EntityManager instance by one of the several available means.

    第1通过几种可用方法之一获取一个EntityManager实例

    youdao

  • The EntityManager class is used to retrieve, persist, update, and delete entities.

    EntityManager用于检索,支持,更新以及删除实体

    youdao

  • You can think of the EntityManager as a facade to the underlying persistence mechanism.

    可以认为EntityManager底层永久性机制Facade

    youdao

  • Each method gains a reference to an EntityManager, which represents the in-memory cache.

    每个方法都获取EntityManager引用提供对内存缓存的支持。

    youdao

  • You need this XML code to turn on EntityManager injection in the Spring XML configuration.

    需要以下XML代码Spring XML配置中启用EntityManager注入

    youdao

  • In addition, you must be conscientious to close the EntityManager when you are done with it.

    此外必须在加载完成关闭entitymanager

    youdao

  • The program will assume I'm doing that manually, rather than using an EntityManager, for example.

    这样程序就会假设手动管理这个ID,不是使用EntityManager来管理。

    youdao

  • EntityManager is the factory that constructs an executable query instance given a JPQL string (line 3).

    EntityManager构造一个包含给定j PQ l字符串可执行查询实例工厂(第3)。

    youdao

  • Using an EntityManager instance enables me to delete entities via the remove method, shown in Listing 14.

    使用EntityManager实例使能够通过remove函数删除一些实体如清单14

    youdao

  • You now have a distributed ObjectGrid and the ability to read and write data using the EntityManager API.

    现已拥有分布式objectgrid以及使用EntityManager API读取写入数据能力

    youdao

  • For your first method that retrieves all of the teams in the league, use the EntityManager to create a query.

    作为检索联赛所有球队首选方法使用EntityManager创建查询

    youdao

  • The EntityManager API also makes it possible to execute queries against the grid to retrieve a number of objects.

    使用EntityManagerAPI可以网格执行查询检索大量对象。

    youdao

  • As part of this exercise, you will also learn about the EntityManager API for storing and retrieving data, rather than the simple map APIs.

    作为练习一部分,学习使用EntityManagerAPI存储检索数据不是使用简单map API。

    youdao

  • The principal access path to any object in a grid should be either through the Map API or through an EntityManager find() using the object’s primary key.

    网格任何对象主要访问方式应该通过MapAPI使用对象EntityManagerfind() 方法。

    youdao

  • To add a new row to your table, you simply create an instance of your entity class, set the attributes, and tell the EntityManager to persist the new entity.

    为了表格添加只需创建实体实例设置属性更新类entitymanager支持新实体。

    youdao

  • In this section, you will create the distributed ObjectGrid and describe how to store and read the Employee objects from the grid with the EntityManager API.

    部分中创建分布式objectgrid介绍如何使用EntityManagerAPI网格中存储读取Employee对象

    youdao

  • A data access object (DAO) that USES JPA is packaged with a persistence.xml that defines persistence context for the JPA EntityManager used by the application.

    使用JPA数据访问对象(DAO)与persistence . xml打包在一起,后者应用程序使用JPAEntityManager定义持久性上下文

    youdao

  • Imagine being able to test a webservice, Stateful bean and extended EntityManager, or Stateless bean with JTA EntitManager and a test case run in a transaction.

    畅想一下,你可以测试webservice、Statefulbean扩展EntityManager或者测试带有JTAEntityManager的Stateless bean并且测试用例运行一个事务之内。

    youdao

  • The @PersistenceContext annotation of the EntityManager object ensures that the Blueprint container injects this object, ready for use, into the bundle at run time.

    EntityManager对象 @PersistenceContext注释确保Blueprint运行这个对象(准备使用)注入捆绑包

    youdao

  • Here, DBWriter is the interface class. There is no requirement to call the DBWriter setUp method because the EntityManager will be directly injected into the bundle.

    在这里DBWriter接口需要调用DBWritersetUp方法因为EntityManager直接注入到捆绑包中。

    youdao

  • However, you failed to note that if you don't use the JPA entity within a transactional context, you need to do an explicit save to the EntityManager to persist any changes.

    然而没有注意到如果没有事务上下文中使用JPA实体需要保存EntityManager保存任何更改

    youdao

  • For a JTA EntityManager, the JTA transaction is propagated to the underlying resource manager (i.e., the virtual database, which relays the transaction to physical databases).

    对于JTAEntityManager, JTA事务传递底层资源管理器(虚拟数据库,由这个事务中继到物理数据库)。

    youdao

  • Our EntityManager query performance experiment demonstrates that, in this case, you can achieve a result that is almost 2000 times faster just by adding an index configuration.

    我们EntityManager查询性能试验表明这种情况下只需添加一个索引配置就可以获得比之前快2000结果

    youdao

  • Finally, you rightly pointed out that there is only one EntityManager implementation, which eliminates the need to do a JNDI lookup, and makes using a JPA entity component extremely easy.

    最后正确地指出EntityManager实现只有一个就不需要进行JNDI查找使得使用JPA实体组件变得异常简单

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定