单词 | JPA | ||||||
释义 | JPA
例句释义: 服务局 1. JPA entities are Java class representations of a database, and allow you to interact on a disconnected model of the database. JPA实体是一个数据库的Java类的代表,并使您能够与数据库没有链接的模型相交流。 www.ibm.com 2. Play makes it pretty easy to switch in and out of various datastores, and it supports JPA out of the box. Play使得切换各种数据存储非常轻松,它开箱即用地支持JPA。 www.ibm.com 3. Implementing JPA-compliant entity managers seems to be the likely direction of these technologies. 实现JPA兼容的实体管理器似乎很可能是此类技术的发展方向。 www.ibm.com 4. You will see a number of errors show up in the Problems view that you can safely ignore until you create your JPA entities. 在Problems视图中您将会看到一系列的错误,在创建JPA实体之前您可以一直忽略它。 www.ibm.com 5. This means that when someone asks for an order, the JPA engine will fetch all the line items that are associated with the order as well. 这意味着,当有人请求订单时,JPA引擎还将获取与该订单相关的所有行项目。 www.ibm.com 6. The class is annotated with an @Entity annotation to indicate to JPA that this class is a mapped entity. 类带上了注释@Entity,以向JPA指示该类是一个被映射的实体。 www.ibm.com 7. A key concept of the JPA is that of a persistence context. JPA的一个重要概念是持久上下文。 www.ibm.com 8. Frank: One of the initial goals of GraniteDS was to leverage all features of JPA engines, starting with lazy-loading and Hibernate. Frank:GraniteDS最初的一个目标就是利用JPA引擎的所有特性,从延迟加载和Hibernate开始。 www.infoq.com 9. JPA seems to be the solution that everyone has been looking for. What's your take on it? JPA似乎是每个人都在寻求的解决方案,对此你有什么看法? www.infoq.com 10. Not surprisingly, as the persistence unit is no longer defined by Java EE, no such name will be populated by the OSGi JPA runtime. 由于持久性单元不再由JavaEE定义,因此这样的名称不会由OSGiJPA运行时填充。 www.ibm.com 1. The JPA Manager Bean wizard provides tools for you to access a database and manage its entities effectively. JPAManagerBean向导向您提供的工具,使您能够访问一个数据库,并有效的管理它的实体。 www.ibm.com 2. Loaded with both in- and out-of-container persistence options, JPA brings J2EE architects a number of new design choices. 由于具有容器内和容器外持久性选项,JPA为J2EE架构师带来一系列全新设计选择。 www.ibm.com 3. The JDO and JPA interfaces present some leaky abstractions due to the fact that BigTable is not a relational database. 由于BigTable不是一个关系数据库,JDO和JPA的接口出现了一些抽象泄漏。 www.ibm.com 4. As you can see, most of the benefits of EJB 3 and JPA that you mention involve simplifying assumptions that may not work for all situations. 正如您可以看到的,您提到的EJB3和JPA的大多数好处都包括简化假设,这可能无法适用于所有情况。 www.ibm.com 5. JPA is a simplified programming model used for object relational mapping and data persistence. JPA是一个用于对象关系映射以及数据支持的简化程序模型。 www.ibm.com 6. When merging a detached object back into a session, JPA will examine the object and update the data store with any changed values. 将分离对象合并回会话时,JPA将检查该对象,并使用任何更改值来更新数据存储区。 www.ibm.com 7. If you do not specify the Join column, JPA will attempt to resolve the keys based on a naming scheme. 如果您未指定Join列,JPA将根据命名方案尝试解析这些键。 www.ibm.com 8. You use the @OneToMany annotation to let the JPA runtime know that this is a managed relation with one team having many players. 使用@OneToMany注释让JPA运行时知道这是一个管理关系,球队有多名球员。 www.ibm.com 9. JPA enables you to configure a single side cache (shown in Figure 5) to improve performance. JPA使您能配置一个sidecache(如图5所示)来改进性能。 www.ibm.com 10. Now, let us have a look at the JPA (Java Persistence API) annotations of your generated Application Java domain class. 现在,让我们看一下生成ApplicationJava领域类的JPA(Java持久化API)注释吧。 www.ibm.com 1. The client must be written in the Java language to invoke JPA through a remote session bean or similar facade. 客户端必须使用Java语言编写,通过一个远程会话Bean或类似的方法来调用JPA。 www.ibm.com 2. On the first page, you can select one of the available JPA Managers that you want to use in the current page. 在第一页中,您可以选择一个可用的,您想在当前页面中使用的JPAManagers。 www.ibm.com 3. Hibernate's JPA support provides for JPA standard persistence and is a good alternative to the proprietary Hibernate APIs. Hibernate的JPA支持提供JPA标准持久性,并且是专有HibernateAPI的较好替代方案。 www.ibm.com 4. Also, the new JPA specification does not include automatic container-managed relationship (CMR) maintenance. 此外,新的JPA规范没有包括容器管理关系(container-managedrelationship,CMR)的自动维护。 www.ibm.com 5. The CRUD (Create, Read, Update, Delete) module generates a fully usable web interface for your JPA Model objects. (增加,读取,更新,删除)模块生成一个完全可用的web接口为你的JPA模型对象。 wenku.baidu.com 6. From the JPA perspective, in the JPA Structure view (usually on the top-right of the JPA perspective), select the birthdate attribute. 在JPA视角下,从JPAStructure视图中(通常在JPA视角的右上部),选择birthdate属性。 www.ibm.com 7. Let me quickly go through the various ways of accessing data with JPA, assuming you are familiar with how to map Java objects in JPA. 让我们快速浏览一下使用JPA访问数据的各种方法,假定您非常熟悉在JPA中映射Java对象的方式。 www.ibm.com 8. The Java Persistence API (JPA) defines how a server-side application should interact with persistent data stored in a relational database. JavaPersistenceAPI(JPA)定义了一个服务器端应用程序是如何查询存储在一个关系数据库中的数据的。 www.ibm.com 9. A transaction callback must be defined in the objectgrid. xml to receive transaction commit or rollback events and send it to the JPA layer. 在objectgrid.xml中必须定义事务的回调函数,这样就可以接收事务提交或回滚的事件,并将其发送到JPA层。 www.infoq.com 10. I am personally part of the JPA 2 expert group and have been thinking about Java Persistence integration for a while. 我个人是JPA2专家组的成员,已经对JavaPersistence集成思索了一段时间。 www.infoq.com 1. JPA entities are a natural fit to be used as the data-binding model required for most JSF components. JPA实体可以用做大多数JSF组件需要的数据捆绑模。 www.ibm.com 2. JPA has a significant limitation: JPA does not fully support calling stored procedures with the OUT parameter. JPA有一个非常重要的限制:JPA并不能完全支持对带有OUT参数的存储过程的访问。 www.ibm.com 3. The JPA application holds no reference to the detached objects between the first access request and the subsequent change request. JPA应用程序在第一个访问请求和后续修改请求之间并没有保持分离对象的引用。 www.ibm.com 4. OpenJPA is focused on building a robust, high performance, scalable implementation of the JPA specification. OpenJPA旨在构建一个稳健、高性能、可伸缩的JPA规范实现。 www.ibm.com 5. Much like JPA, all of EJB 3. 0 has been simplified with a POJO programming model, making EJB 3. 0 easy to code. 与JPA非常相似,EJB3.0的所有内容都通过POJO编程模型得到了简化,从而使得EJB3.0非常易于编码。 www.ibm.com 6. The current JPA specification provides some elementary facilities for the customization of closures. 当前的JPA规范提供了一些基本的自定义闭包工具。 www.ibm.com 7. Namespaces simplifying Spring MVC and JPA usage will probably be the first to be added to the core. 简化SpringMVC和JPA使用的命名空间可能会最先加入到核心中去。 www.infoq.com 8. In the JPA Details view, uncheck the Optional check box and check the All check box for the Cascade options, as shown in Figure 12. 在JPADetails视图中,取消Optional复选框的选择,并选中All复选框,如图12所示。 www.ibm.com 9. Apache OpenJPA provides a great opportunity to begin using JPA on the WebSphere Application Server platform. OpenJPA为开始在WebSphereApplicationServer平台上使用JPA提供了重要的机会。 www.ibm.com 10. The JPA specification in its current form does not define read-only entity beans. 当前形式的JPA规范没有定义只读实体bean。 www.ibm.com 1. Finally, even the JPA specification mentions that EJB 2. x is still expected to be used after EJB 3 and JPA are finalized. 最后,甚至连JPA规范都提到在EJB3和JPA定稿后仍然期望使用EJB2.x。 www.ibm.com 2. You can leverage out-of-container use of JPA to perform the task (more on that in the next section). 您能够利用容器外使用的JPA来执行该任务(将在下一节进行详细介绍)。 www.ibm.com 3. Entity objects are the primary model used in JPA applications. 实体对象是JPA应用程序中使用的主要模型。 www.ibm.com 4. is an integer holding the Trade ID, the unique key created by JPA when the initial record is inserted into the database. 是一个包含交易ID的整数,交易ID是在数据库中插入初始记录时由JPA创建的唯一键。 www.ibm.com 5. The provider typically holds these objects in a short-term memory region called persistent context in JPA nomenclature. 这个提供者一般会在一个JPA称之为持久化上下文的短期内存区域中保存这些对象。 www.ibm.com 6. In its JPA implementation, Hibernate sets the FlushMode of the underlying Hibernate session to MANUAL and the auto-commit mode to false. 在其JPA实现中,Hibernate将底层Hibernate会话的FlushMode设置为MANUAL并将auto-commit模式设置为false。 www.ibm.com 7. Because SimpleJPA is a JPA implementation, you can easily use JPA-compliant domain objects with it. 因为SimpleJPA是一个JPA实现,您可以很容易在其中使用符合JPA的域对象。 www.ibm.com 8. The persistence. xml file denotes a particular JPA provider for the persistence unit along with provider specific properties. xml文件则表示一个特殊的JPA提供器,它针对具有提供器的特定属性的持久化单元。 www.infoq.com 9. Here we illustrate an alternative approach where the Java application is a Spring based WAR utilizing JPA. 我们这里介绍另一种可选方案,针对的Java应用是某个基于Spring使用了JPA的WAR。 www.infoq.com 10. Eventually, if the changes are consistent and isolated, then the server commits the changes to the database via the JPA API. 最后,如果修改是一致且独立的,那么服务器就会通过JPAAPI将修改提交到数据库中。 www.ibm.com 1. This Customer object is a JPA managed class (@Entity) and is then persisted to the database. 这个Customer对象是一个JPA管理的类(@Entity),然后被持久化到数据库。 www.ibm.com 2. JPA enables a few strategies for automatic primary key generation. JPA启用了几个自动化主键生成策略。 www.ibm.com 3. The new Groovy support can be used to write different OpenXava components like JPA entities, actions, and the test cases. 新的Groovy支持可用于编写不同的OpenXava组件,如JPA实体、Action以及测试类。 www.infoq.com 4. However, JPA defines the notion of container-managed entity manager versus application-managed entity manager. 然而,JPA定义了容器管理的实体管理器与应用程序管理的实体管理器的概念。 www.ibm.com 5. In the JPA Details view, select the many to one hyperlink, as shown in Figure 12. 在JPADetails视图之中,选择manytoone超链接,如图12所示。 www.ibm.com 6. There is nothing specific to your database or the JPA implementation you used. 对已使用的数据库和JPA实现没有什么特别的。 www.ibm.com 7. The EJB project has a stateless session EJB that you will use to invoke your JPA entities to create new members and memberships. EJB项目拥有一个会话EJB,您可以使用它来调用JPA实体来创建新的成员以及成员类型。 www.ibm.com 8. The persistence bundle makes use of another standard feature of enterprise OSGi, JPA integration, to take advantage of managed persistence. 持久性bundle使用企业OSGi的另一个标准特性—JPA集成—来利用托管持久性。 www.ibm.com 9. Detached JPA entities are used as data transfer objects (DTOs) between the various layers of the architecture. 可以使用独立的JPA实体作为架构的各层之间的数据传输对象(DTO)。 www.ibm.com 10. This can be like finding a needle in a haystack, especially if the SQL was generated by a third party, such as Hibernate or JPA. 这就像是大海捞针,尤其是在SQL由Hibernate或JPA等第三方软件生成的情况下。 www.ibm.com 1. However, JPA may be letting database details quickly creep back into the Java source. 不过,JPA可以让数据库详细信息快速返回到Java源。 www.ibm.com 2. Having to explicitly manage the transactional context would add complexity to the JPA programming model. 必须显式管理事务上下文将增加JPA编程模型的复杂性。 www-128.ibm.com 3. JPA prescribes that object relationships be decorated with persistence qualities. JPA规定对象关系是用持久化特性装饰的。 www.ibm.com 4. However, it does not use the JPA objects to ensure a strict separation of process and business data. 但是,它不使用JPA对象,因此可以确保流程和业务数据之间的严格隔离。 www.ibm.com 5. You can set up relationships in JPA and JDO, but they can only be used for persisting relationships. 您可以在JPA和JDO间设置关系,但它们只能用来持久化关系。 www.ibm.com 6. JPA Manager Beans are an ideal programming model for use in two-tier Web environments. JPAManagerBeans是一个在双层Web环境下使用的理想编程模型。 www.ibm.com 7. JPA uses commonsense default values for the metadata mappings whenever possible. JPA在任何可能的情况下,为这些数据映射使用一般意义下的默认值。 www.ibm.com 8. This notion of run-time scope as a strict set of mutually referable classes is captured in JPA 1. 0 as a persistence unit. 现在将一组严格的可相互引用的类称为运行时作用域,而在JPA1.0中称为持久化单元。 www.ibm.com 9. This makes it so they are available to import by other bundles and, in this case, so the JPA entities can be accessed and data manipulated. 之所以这样,其他的绑定包就可以导入它了,在这种情况下,所以JPA实体就可以访问了,数据也得到控制了。 www.ibm.com 10. But the core proposition of JPA as a middleware component goes far beyond solving the ORM problem. 但是JPA的核心目标是成为一个远远不仅限于解决ORM问题的中间件组件。 www.ibm.com 1. In our sample application, we have four corresponding JPA entities, as shown in the class diagram in Figure 4. 在我们的示例应用程序中,我们有四个对应的JPA实体,如图4中的类图所示。 www.ibm.com 2. If you have been following the JPA 2. 0 expert group, then you know that this is a moving target. 如果一直关注JPA2.0专家组,您会知道这是个持续的目标。 www.ibm.com 3. OpenJPA relies on byte code enhancement to add persistence behavior to your JPA objects. OpenJPA依赖字节代码增强来向JPA对象添加持久性行为。 www.ibm.com 4. Other projects don't even try to mimic the full JPA specification: they just borrow what they want from it. 其他项目甚至不会尝试模拟完整的JPA规范:它们仅从它那里借用想要的东西。 www.ibm.com 5. When you have your JPA model in place, there are additional tools that are available that make your job easier, as the next list shows. 当您已经准备好您的JPA模型后,可以使用额外的工具,使您的工作变得更加轻松,如下面的列表所示。 www.ibm.com 6. The Java Persistence API (JPA) represents a major enhancement to persistence programming of the EJB 3 specification. JavaPersistenceAPI(JPA)代表了对EJB3规范持久性编程的重大增强。 www.ibm.com 7. You used several key technologies to remove tedious boilerplate code both from the server side and the client side: JPA, JAX-RS, and Dojo. 使用了几项关键技术移除服务器端和客户端的繁杂的样板式代码:JPA、JAX-RS和Dojo。 www.ibm.com 8. Dali also provides wizards and edit boxes for managing various Java Persistence API (JPA) annotations. Dali还为管理各种JavaPersistenceAPI(JPA)注释提供了向导和编辑框。 www.ibm.com 9. So, instead of looking up the JPA service by unit name, you are using only the interface here. 因此,不要根据单元名查询JPA服务,而是仅使用这里的接口。 www.ibm.com 10. JPA's progenitors will continue to thrive, but their raw use in business applications will probably diminish. JPA的前辈将会继续稳定发展,但是业务应用程序中的raw使用将可能会减少。 www.ibm.com 1. It allows to perform entity manager operations and queries that are not allowed in JPA callbacks. 此外,还可以执行JPA回调中所不允许的实体管理操作与查询。 www.infoq.com 2. Most members of the JPA development team are active committers on the Apache OpenJPA project. JPA开发团队的大多数成员都是ApacheOpenJPA项目的积极贡献者。 www.ibm.com 3. The developers can use the extension points when using Spring to configure JPA for organizing a large code base into smaller modules. 在使用Spring配置JPA把大段代码分割为小模块的时候,开发人员就可以利用扩展点。 www.infoq.com 4. It explains which JPA features are optional for implementations and are therefore not portable. 它解释了哪些JPA特性对实现是可选的,因而也是不可移植的。 yeebang.com 5. OR mapping is a crucial element of an application designed around JPA. OR映射是围绕JPA设计的应用程序的重要元素。 www.ibm.com 6. JPA annotations will have the ability to map Java objects to database tables with tenancy control. JPA注释在站点(租户)的控制下可具备将Java对象映射到数据库表中的能力。 www.infoq.com 7. You will begin building your application by creating entity objects and their corresponding JPA manager beans. 通过创建实体对象以及它们相应的JPAmanagerbeans,您将开始构建您的应用程序。 www.ibm.com 8. This approach to flow-managed persistence matches exactly how JPA 1. 0 interprets the handling of a conversation. 流管理持久化使用的这种方法与JPA1.0解释对话处理的方式是完全一致的。 www.ibm.com 9. It's because the JPA specification imposes a group-like behavior on the managed instances of a persistence context. 这是因为JPA规范对持久性上下文的管理实例施加的了一个类似组的行为。 www.ibm.com 10. This access-detach-modify-merge can enable a JPA-based application to become scalable and cost-effective. 这种“访问-分离-修改-合并”模式使基于JPA的应用程序变得可扩展且高效。 www.ibm.com 1. We illustrate local transactions with JPA using the SAMPLE database, but we use both the databases for illustrating JTA transactions. 我们将使用SAMPLE数据库演示利用JPA的本地事务,但还会将这两个数据库用于演示JTA事务。 www.ibm.com 2. JPA supports access-detach-modify-merge style transactions for remote clients. JPA支持远程客户端的“访问-分离-修改-合并”风格的事务。 www.ibm.com 3. You will get all of the benefits of JPA and the ease of use that it provides no matter what environment you prefer. 您可以充分利用JPA的益处,以及它提供的便利之处,不管您喜欢什么环境。 www.ibm.com 4. The JPA entities generated are only a starting point. 生成的JPA实体只是一个起始点。 www.ibm.com 5. The JPA simplifies object relational mapping and data persistence. JPA简化了对象关系性映射和数据持续性。 www.ibm.com 6. Some JPA 2. 0 sample code is also presented should you wish to experiment with a new OSGi application. 如果您想使用一个新OSGi应用程序进行试验,这里为您提供一些JPA2.0样例代码。 www.ibm.com 7. Close the Web Project properties dialog by clicking the OK button. JPA entities can now be created. 通过点击OK按钮,来关闭WebProject属性对话框,现在就可以创建JPA实体了。 www.ibm.com 8. Before generating the JPA entities, add a database connection to the Web project. 在生成JPA实体之前,向Web项目添加一个数据库链接。 www.ibm.com 9. Hibernate and JPA are the most popular mechanisms for accessing relational data in Fabric3. Hibernate与JPA是Fabric3中访问关系型数据的最流行的方式。 www.infoq.com 10. The Hibernate documentation describes how to package and deploy applications using Hibernate's JPA implementation. Hibernate文档描述了如何使用Hibernate的JPA实现包装和部署应用程序。 www.ibm.com 1. JLINQ generates interfaces that have similar annotations to JPA at design time. JLINQ可以在设计阶段生成与JPA具有相似注解(annotation)的接口。 www.infoq.com 2. JPA has strong support for relationships between entities. JPA对实体之间的关系提供强大的支持。 www.ibm.com 3. JPA supports mapping your domain model using external XML mapping files. JPA使用外部XML映射文件支持映射您的域模型。 www.ibm.com 4. A good example is the java. sql. Timestamp type, which the JPA tooling uses by default for the DB2 TIMESTAMP column type. 一个很好的例子就是java.sql.Timestamp类型,对于DB2TIMESTAMP列类型JPA工具在默认条件下会使用到它。 www.ibm.com 5. The code generator is transforming entity definition in JPA-based Java code. 代码生成器对用Java代码(JPA)定义的实体作变换。 www.infoq.com 6. Moreover if you use the provided play. db. jpa. Model superclass it will help make your code prettier. 另外,如果你用提供的play.db.jpa.Model超库,它会帮你把代码变得更漂亮。 www.bing.com 7. JPA makes use of annotations as a mechanism to map Java objects to the underlying database. 在JPA中,注释用作将Java对象映射到底层数据库的一种机制。 www.ibm.com 8. If this option is unchecked, the JPQL query statements will be used directly inside of the JPA Manager Bean code. 如果该选择没被选中,那么JPQL查询语句将在JPAManagerBean代码中直接使用。 www.ibm.com 9. Data access and integration with the new Java Persistence API (JPA). 数据访问和与新的Java持久化API(JPA)的集成。 www.infoq.com 10. Before JPA 2. 0, this semantic distinction was represented via corresponding class-level annotations in the persistent-class definition. 在JPA2.0之前,这种语义区分是通过持久化类定义中的对应类级别注释来表示的。 www.ibm.com 1. JPA Manager beans map one-to-one to a JPA entity. JPAManagerbeans一对一地映射一个JPA实体。 www.ibm.com 2. The injected JPA entity manager may be referenced anywhere in Spring components, such as in DAOs, service beans, or Web-tier beans. 注入的JPA实体管理器可以在Spring组件的任何地方引用,比如在DAO中、服务bean或Web层bean中。 www.ibm.com 3. The Blether service uses the JpaTemplate utility class that the Spring framework provides to add additional methods for JPA. Blether服务使用Spring框架提供的JpaTemplate实用工具类来为JPA添加其他方法。 www.ibm.com 4. The final difference is the injection of the JPA service, which is absent from the Blueprint descriptor. 最后的区别是JPA服务的注入,这在Blueprint描述符中没有。 www.ibm.com 5. It also generates the SQL statements needed in the execution of JPA named queries. 它还生成在JPA命名的查询的执行中需要的SQL语句。 www.ibm.com 6. You can configure Hibernate by using the standard JPA configuration file, persistence. xml, which is shown in Listing 5. 您可以使用标准JPA配置文件persistence.xml配置Hibernate,如清单5所示。 www.ibm.com 7. is used to create the JPA EntityManagerFactory. User objects are created and then persisted to the database in batches. 用户对象会被创建,然后被批量地持久化到数据库中。 www.infoq.com 8. So, it is more correct to say something like "using JPA is simpler" . 所以,更准确的说法是“使用JPA更加简单”。 www.ibm.com 9. The Order Processor interacts with the JPA entity manager and the JPA POJOs to accomplish its persistence code. OrderProcessor与JPA实体管理器和JPAPOJO交互以完成其持久性代码。 www.ibm.com 10. Nothing to configure, play will automatically start the JPA Entity Manager and magicallysynchronize it while the code is reloaded. 没有什么需要去配置,Play会自动启动JPAEntityManager而且在代码重载时会魔术一般的同步它。 www.bing.com 1. The major limitation of the current JPA specification is that such customization is defined statically, at design time. 当前JPA规范的主要限制是这种自定义是在设计时静态定义的。 www.ibm.com 2. In general, configure JPA inside persistence. xml. 总的来说,需要在persistence.xml内部配置JPA。 www.ibm.com 3. Annotations within a JPA entity can represent table columns, relationships to other tables, primary keys, and so on. 一个JPA实体中的注释,可以显示出表格的列,其他表格之间的关系,主关键字以及等等。 www.ibm.com 4. GraniteDS' JPA support has been widely used and is mature for a long time now. GraniteDS的JPA支持使用非常广泛,随着时间的流逝已经变得很成熟了。 www.infoq.com 5. This way, when you compile your classes in Eclipse, the JPA enhancer will run as part of the build. 这样,当您在Eclipse中编译类时,JPA增强程序将作为该构建的一部分来运行。 www.ibm.com 6. JPA provides an API for managing and persisting the entities in your applications. JPA为在您的应用程序中映射和支持实体提供一个API。 www.ibm.com 7. JPA to ensure incorrect data is not persisted. 确保错误数据不会持久存储。 www.ibm.com 8. You need to move the application logic that uses the JPA services from theWeb module to the persistence bundle. 您需要将使用JPA服务的应用程序逻辑从Web模块迁移到持久性捆绑包。 www.ibm.com 9. Select OK to confirm the conversion from JPA project to OSGi bundle. 选择OK以确定从JPA项目到OSGi绑定包的转变。 www.ibm.com 10. I introduced SimpleJPA a few columns back, but noted that even though it's based on JPA, it doesn't implement the full JPA specification. 我在前面的几个专栏中介绍了SimpleJPA,但是发现尽管它是基于JPA的,它不实现完整的JPA规范。 www.ibm.com 1. The persistence architecture that was introduced in JEE 5 is Java Persistence API (JPA) architecture. JEE5中引入的持续性结构是JavaPersistenceAPI(JPA)结构。 www.ibm.com 2. JPA entity components mix implementation details into your POJOs. JPA实体组件将实现细节加入您的POJO中。 www.ibm.com 3. You can think of JPA as the successor to well-known transparent persistence technologies such as JDO and Hibernate. 您可以把JPA看作是众所周知的透明持久性技术(如JDO和Hibernate)的继承者。 www.ibm.com 4. Entity will create a flexible, feature-rich JPA entity. Entity将创建一个灵活的、特性丰富的JPA实体。 www.ibm.com 5. JPA has a very rich query language you can use, called EJB-QL. JPA有非常丰富的查询语言可供您使用,即EJB-QL。 www.ibm.com 6. As Figure 2 illustrates, a JPA-based application accesses the model (the relational database) only via the view (POJOs). 图2说明了一个基于JPA的应用程序只通过视图(POJO)来访问模型(关系数据库)。 www.ibm.com 7. Many of these examples use JDO, none use JPA. 许多示例都使用JDO,没有一个使用JPA。 www.ibm.com 8. In this sample, you will instead follow the JPA specification and map the datasources directly to global JNDI. 在该样例中,您将遵循JPA规范,并将数据源直接映射到全局JNDI。 www.ibm.com 9. Data storage is based on BigTable, but with JDO and JPA interfaces that allow you to write code that is not directly tied to BigTable. 数据存储的基础是BigTable,但是使用的是JDO和JPA接口,这些接口允许您编写没有直接绑定到BigTable的代码。 www.ibm.com 10. If you already know JPA-the source code will be straightforward. 如果你已经知道JPA-the简单的源代码。 zhidao.baidu.com 1. The data is exchanged via detached JPA entities. 通过独立的JPA实体交换数据。 www.ibm.com 2. The feature pack actually consists of two installable features: the OSGi application feature and the JPA 2. 0 feature. 这个特性包实际上包含两个可安装特性:OSGi应用程序特性和JPA2.0特性。 www.ibm.com 3. Based on how you created your JPA project, the defaults should list the correct database and schema. 基于您是如何创建JPA项目的,默认选择是列出适当的数据库与方案。 www.ibm.com 4. A single Comment Line column cannot do justice to all the new features in the JPA 2. 0 specification. 一个评论专栏无法全面介绍JPA2.0规范中的所有新特性。 www.ibm.com 5. The JPA runtime needs to find this file and use the metadata in it. JPA运行时需要找到该文件,并使用其中的元数据。 www.ibm.com 6. The code here is just standard JPA code for querying and creating messages. 这里所示的代码是一些用来查询和创建消息的标准JPA代码。 www.ibm.com 7. Figure 2 shows the flow from a JPA application to the database using JDBC. 图2显示了使用JDBC时从JPA应用程序到数据库的流。 www.ibm.com 8. Tuple is a JPA-defined interface to denote a row of data. Tuple是一个表示一行数据的JPA定义接口。 www.ibm.com 9. Select the JPA Data item from the palette, and drag it onto the page. 从palette中选择JPAData项,并将其拖住页面。 www.ibm.com 10. Access to a JPA provider's L2 cache, if available. 可对JPA提供商的二级缓存进行访问,如果缓存可用的话。 www.ibm.com 1. JPA has made this task easier, but still requires a lot of boilerplate code. JPA让持久化变得非常容易,但是仍然需要编写很多模板代码。 www.infoq.com 2. developerWorks: Can you expand on the support for JPA with Spring? developerWorks:可以扩展对JPA和Spring的支持吗? www.ibm.com 3. As you have learned from this article, JPA provides an easy way to persist data in your applications. 您从本篇文章学到,JPA在您的应用程序中提供了一种数据支持的简单方式。 www.ibm.com 4. However, when you do have an EJB 3 environment, you can use this approach to separate your Spring and JPA configurations. 但是,当您拥有EJB3环境时,可以使用此方法分离Spring和JPA配置。 www.ibm.com 5. Now you will add JPA data to your application. 现在您需要向您的应用软件添加JPA数据。 www.ibm.com 6. Other locations can be specified using comma separated paths, including paths into nested jars, for example, Meta-Persistence: jpa. 可以使用逗号分隔的路径指定其他位置,包括嵌套jars的路径,例如,Meta-Persistence:jpa.xml,persistence.jar! www.ibm.com 7. JPA provides a standard OR mapping solution that's well-integrated into an EJB 3. 0-compliant container. JPA提供一种标准的OR映射解决方案,该解决方案完全集成到EJB3.0兼容的容器中。 www.ibm.com 8. JPA 1. 0 introduced JPQL, a powerful query language that's considered a major reason for JPA's popularity. JPA1.0引进了JPQL,这是一种强大的查询语言,它在很大程度上导致了JPA的流行。 www.ibm.com 9. Another key aspect of the JPA 2. 0 specification is the Criteria query API. JPA2.0规范的另一个重要因素是CriteriaqueryAPI。 www.ibm.com 10. The input is simple: a series of JPA-annotated classes. 输入很简单:一系列带JPA注解的类。 www.ibm.com 1. This is a central class in JPA and provides access to the underlying database. 这是JPA的中心类,并提供对底层数据库的访问。 www.ibm.com 2. JPA isthe cleanest ORM API available for Java. JPA是Java能用的最干净的ORMAPI。 www.bing.com 3. The jpautility bundle's MANIFEST. MF file now has an additional Import-Package entry to cater for the JPA 2. 0 Criteria APIs (Listing 13). 现在,jpautility捆绑包的MANIFEST.MF文件有一个附加Import-Package项,可以满足JPA2.0CriteriaAPI(清单13)。 www.ibm.com 4. That is, you can change the default class names of the JPA entitles provided. 这就是说,您可以更改所提供JPA实体的默认类名。 www.ibm.com 5. It's been estimated that 75-80% of the SpecJEnterprise benchmark depends on the persistence layer (that is, JPA provider). 据估计,75-80%的SpecJEnterprise基准测试依赖持久化层(即JPA提供者)。 www.ibm.com 6. There is also a JPA 2. 0 metamodel API that enables the developers to dynamically access the database metamodel information. JPA2.0还有一个元模型API,能让开发人员动态访问数据库的元模型信息。 www.infoq.com 7. JPA 2. 0 is used for the data persistence. JPA2.0用于数据持久化。 www.infoq.com 8. Another new runtime update for JPA 2. 0 provides access to a JPA provider's Level2 cache, if a cache is available. 另一个新的JPA2.0运行时更新提供了对JPA提供商的二级缓存的访问,如果缓存可用的话。 www.ibm.com 9. However, most JPA usage I have seen out there has clearly favored the use of annotations. 不过,我看到的大多数JPA使用情况都明显喜欢使用注释。 www.ibm.com 10. The Add JPA data wizard opens (Figure 22). 打开AddJPAdata向导(图22)。 www.ibm.com 1. In my blog, I will spend sometime showing examples of using the XML mapping style of JPA. 在我的网络日志中,我将花费一些时间来说明使用JPA的XML映射样式的示例。 www.ibm.com 2. Looking back at Listing 1 and 2, all of the code is generic JPA code. 回头看看清单1和清单2,所有代码都是通用的JPA代码。 www.ibm.com 3. This is somewhat similar to SQL and the querying entities in JPA. 这有点类似于SQL和JPA中的查询实体。 www.ibm.com 4. For example, there is no way to match up JPA annotations with a bean created by a factory. 例如,没有方法可以匹配JPA注释与工厂创建的bean。 www.ibm.com 5. Hades provides an abstraction to easily build such predicates based on the JPA 2. 0 criteria API. Hades提供的抽象方式可以很容易的基于JPA2.0的标准API实现领域驱动设计。 www.infoq.com 6. An example of this is when you have two EARs deployed whose entity classes (JPA, Hibernate, etc. ) shared common tables. 一个例子是你部署了两个EAR应用,它们的实体类(JPA、Hibernate等)共用同一个表。 www.infoq.com 7. Let's look at how JPA queries are added. 让我们看一下JPA查询是怎样添加的。 www.ibm.com 8. The JPA 2. 0 specification devotes several pages (section 2. 4) to derived identity scenarios. JPA2.0规范中有几页(2.4节)是关于派生身份场景的。 www.ibm.com 9. The amount of work to change the JPA-QL in the XML file was still significant. 在XML文件中更改JPA-QL的工作量仍很大。 www.ibm.com 10. You don't have any JPA entities yet, so you will generate entities from an existing database. 现在您还没有任何JPA实体,所以您需要从一个已存在的数据库中生成实体。 www.ibm.com 1. For data access, I will use JPA. 对于数据访问,我使用的是JPA。 www.ibm.com 2. For example, CDI makes it easier to build a Java EE web application that accesses a database with persistence provided by JPA. 比如,借助于CDI,我们构建的JavaWeb应用能够轻松实现对数据库的访问(由JPA提供持久化支持)。 www.infoq.com 3. EJB 3. 0 and JPA will undoubtedly be major selling points for Java EE 5. EJB3.0和JPA毫无疑问将是JavaEE5的主要卖点。 www.ibm.com 4. Also, Spring Test module has great support for unit and integration testing of JPA classes (for example AbstractJpaTests). 同样,SpringTest模块对JPA类(如AbstractJpaTests)的单元测试、集成测试都提供很好的支持。 www.infoq.com 5. In addition to reviewing the concepts and benefits of JPA, you have seen how it can be used within a Web container. 除了回顾JPA的概念以及优势,您还可以学到怎样在一个Web页面中使用JPA。 www.ibm.com 6. Do you see this working in the same way for JPA 2? 你了解JPA2中同样的工作方式吗? www.infoq.com 7. This is not true because SE does not have a dependency on EE in order to make JPA work. 这不是事实,因为要使JPA工作,SE并不需要依赖于EE。 www.infoq.com 8. Additionally, this interceptor needs to be registered in the persistence context of JPA by means of the hibernate. ejb. interceptor property 此外,还需要通过hibernate.ejb.interceptor属性将拦截器注册到JPA的持久性上下文中 www.infoq.com 9. and they really work well: I'm using EJB 3. 0 JPA 1. 0 since about 2 years in projects. 他们工作的非常棒:近两年来,我在项目中使用EJB3.0 JPA1.0。 www.bing.com 10. Besides supporting the various database constraints, JPA enables you to define constraints on the various relationships JPA除支持各种数据库约束外,还可以使用它定义对各种关系的约束 www.ibm.com 1. JPA also enables you to use native SQL queries against the underlying tables, and provides the ability to map back the results JPA还使您能够对基础表使用本机SQL查询,并提供映射回结果的能力 www.ibm.com 2. As an architectural style, JPA adheres to the classic Model-View-Controller (MVC) architecture for persistent Java objects 作为一种架构风格,JPA符合持久化Java对象典型的“模型-视图-控制器”架构 www.ibm.com 3. The JPA specification defines three types of support for mapping inheritance; only one is mandatory in the current specification JPA规范定义了对映射继承的三种类型的支持;其中只有一种在当前规范中是强制的 www.ibm.com 4. JPA - OpenJPA and Hibernate plugins that reflects changes to entities, annotations and configuration (beta, disabled by default) JPA——提供OpenJPA和Hibernateplugins,能够反应实体、注解和配置变化(beta版,默认禁用) www.infoq.com 5. Tools to easily switch the queries used by those pages without touching the Web page code (after your Web pages have accessed JPA data) 在不涉及Web页面代码的前提下,那些页面使用的能方便改变查询的工具(在您的Web页面访问JPA数据以后) www.ibm.com 6. JPA operation: The persistent operations in the JEST context are mostly methods on the javax. persistence. EntityManager interface JPA操作:JEST环境中的持久化操作大部分是javax.persistence.EntityManager接口的方法 www.ibm.com 7. Tools to add JSF converters for complex JPA entities and to create different UI controls for relationship fields 为复杂JPA实体添加JSF,以及为关系区域添加不同UI控制器的工具 www.ibm.com 8. Enable JPA access within an OSGi context, using JNDI to perform OSGi service registry lookup 支持在OSGi背景下进行JPA访问,使用JNDI来执行OSGi服务注册查找操作 www.ibm.com 9. Detached transactions: Key to unifying REST with JPA transactions 分离事务:使REST与JPA整合统一的关键 www.ibm.com 10. At this logical level, we have added a couple of UML-to-JPA stereotypes from the transformation profile 在这个逻辑层上,我们添加了几个来自转换概要文件的UML到JPA模板 www.ibm.com 1. Specifying automatic ID generation for JPA entities 指定JPA实体的自动ID生成 www.ibm.com 2. Execution step: Run JPA application with pureQuery 执行步骤:使用pureQuery运行JPA应用程序 www.ibm.com 3. JPA: Model-View-Controller for object persistence JPA:支持对象持久化的“模型-视图-控制器” www.ibm.com 4. Java EE web module (dynamic web project) with converted JPA OSGi bundle JavaEE网络模块(动态网络项目)与转化的JPAOSGi绑定包 www.ibm.com 5. This application utilizes JPA 1. 0 to persist an entity to a database. The steps outlined here involve 该应用程序利用JPA1.0将一个实体持续化到一个数据库。 www.ibm.com 6. Tools for visually configuring JPA-related data 可视化配置与JPA相关数据的工具 www.ibm.com 7. The key technical challenges of unifying REST and JPA, then, are 统一REST和JPA的主要技术难点是 www.ibm.com 8. Visual configuration of JPA entities JPA实体的可视化配置 www.ibm.com 9. First, create a JPA project to host your JPA entity beans 首先,您要创建一个JPA项目以放置您的JPA实体beans www.ibm.com 10. Getting Started with JPA and Eclipse 起步,与JPA和一次月食 zhidao.baidu.com 1. This basic example shows the following key aspects of the query-execution model in JPA 1. 0 这个基础的例子显示了JPA1.0中的查询执行模型的以下关键方面 www.ibm.com |
||||||
随便看 |
|
英汉双解词典包含2704715条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。