entity manager中文,entity manager的意思,entity manager翻译及用法

2025-10-31 12:03 浏览次数 14

entity manager

实体管理者

entity manager 例句

英汉例句

  • 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 中。

  • within the persistence context, the entity「s association with the underlying persistence store is managed by the entity manager (em).

    在持久性上下文中,实体与基础持久性存储区的关联由实体管理器(entity manager,em)管理。

  • each bean has the entity manager injected into it

    每个bean都要把实体管理器注入到其中

  • the entity and entity manager bean packages have been added as export-packages.

    实体和实体管理豆包已经作为导出包添加了。

  • to obtain an entitymanager instance, we simply inject the entity manager into the application component shown in listing 7.

    要获取entitymanager实例,只需将实体管理器注入应用程序组件即可,参见清单7。

  • however, jpa defines the notion of container-managed entity manager versus application-managed entity manager.

    然而,jpa定义了容器管理的实体管理器与应用程序管理的实体管理器的概念。

  • in other words, there is no way to tell a lazy object apart from an eager one outside of the realm of the entity manager (and it really doesn」t matter within).

    换句话说,在实体管理器之外(在实体管理器内也没关系)无法把 非活动(lazy)对象与 活动(eager)对象区分开。

  • using an extended entity manager as your flow-scoped persistence context will lead to unpredictable database/transaction behavior in your applications, so avoid it.

    将扩展的实体管理器用作流作用域的持久化上下文会导致应用程序中出现不可预测的数据库/事务行为,因此要尽量避免使用它。

  • the simplest way to access persistent data is by using the find method. here is an example of an application using the entity manager to find an object by its primary key

    最简单的访问持久性数据的方法是使用find方法。

  • this query can be passed into the entity manager to retrieve a list of all department entities, ordered by their department number.

    此次查询可以传递给entity manager,以检索所有department实体的列表,该列表通过它们的department号码进行排序。

  • the order processor interacts with the jpa entity manager and the jpa pojos to accomplish its persistence code.

    orderprocessor与jpa实体管理器和jpapojo交互以完成其持久性代码。

  • in the general case, the behavior of an object depends on its persistent state. for example, suppose the following line of code executes within the realm of entity manager

    一般情况下,对象的行为取决于其持久性状态。

  • a low-level entity manager links the abstract view to the actual document.

    底层的实体管理器将这个抽象视图联系到实际的文档。

  • however, it is important to realize that you must open and close the entity manager yourself.

    然而,务必要认识到您必须自己打开和关闭该实体管理器。

  • it allows to perform entity manager operations and queries that are not allowed in jpa callbacks.

    此外,还可以执行jpa回调中所不允许的实体管理操作与查询。

  • they should be ready for invocation in any tier, whether within the realm of the entity manager or not.

    无论是否在实体管理器中,它们都应该準备好在任何层中调用。

  • this means we cannot inject the entity manager into calling code.

    这意味着我们无法将该实体管理器注入调用代码。

  • another restriction arises from the fact that the domain objects can be accessed both in the tier where they are managed by the entity manager and in all the other tiers where they are detached.

    另一种限制源自于这样一个事实:域对象可以通过由实体管理器所管理的域对象所在的层访问,也可以通过分离它的所有其他层访问。

  • however, as stated, the application-managed entity manager can still be configured using jta.

    然而,按照规定,仍然可以使用jta 来配置应用程序管理的实体管理器。

  • interestingly, a seam conversation is typically implemented with an extended entity manager injected into a stateful session bean (ejb).

    有趣地是,seam对话通常用注入到有状态会话bean (ejb)中的扩展的实体管理器实现。

  • when moving a document from one computer to another, you would update the entity manager but leave the documents unchanged.

    如果要把文档从一台计算机转移到另一台计算机,可以修改实体管理器而不必动文档。

相关热词