典型的方法是根据实体的主关键字进行查询,因为这可以保证产生一个独一无二的结果。
The typical method is to look up the entity by its primary key, because that will guarantee a unique result.
使用这种方法,每个数据实体就既包含属性又包含它所表示的类继承的属性。
With this approach each data entity includes both the attributes and the inherited attributes of the class that it represents.
EDA使用传递消息概念作为两个或多个实体之间交互的方法。
EDA USES messaging concepts as the means of interaction between two or more entities.
有五种不同的“顶级”方法对来自所有四个实体的信息加以组合。
There were five different "top level" methods to compose information from all four entities.
领域模型还帮助标识这些实体的属性和重要方法。
The domain model also helps identify the attributes and important methods of those entities.
每个实体类型都有两个方法。
主要的差别是外表的装饰并且包括实体相互之间的通信方法,而不是它们通信内容的本质。
The primary differences are almost cosmetic from the outside and involve how entities communicate with each other, not the substance of what they communicate.
资产是资源方法返回的特殊形式的实体对象。
An asset is a special form of entity object that a resource method returns.
回到1950年,阿兰·图灵推荐将图灵测试作为一种判定实体是否是智能的实体的方法。
As far back as 1950, Alan Turing proposed the Turing Test as a method of determining whether an entity should be treated as intelligent.
尽管如此,实体通信方法的差异对灵活性和互操作性有很大的影响。
However, these differences in how the entities communicate have a big impact on flexibility and interoperability.
指定实体识别的一种方法是基于列表提取实体。
One approach to Named Entity Recognition is list-based extraction of entities.
这种方法的问题是对实体进行编码。
一种削减成本的方法是在现有的实体商店打包商品。
One way of cutting costs is to pack bags at existing stores.
通过这种方法,JPA实体会在一个地方进行管理,并且可以作为数据层由许多项目使用,而不是包含JPA实体和管理豆的项目使用。
That way, JPA entities are managed in one place and can be used as a data layer by many projects, rather than each project containing its own JPA entities and manager beans.
对于这些实体,基于规则的提取是更合适的方法。
For these entities, rule-based extraction is the proper approach.
但上期专栏介绍了使用实体Bean及其Home方法代替会话Bean的可能性,从而使人们对会话Bean是否真的是必需的产生了疑问。
But that previous column leads one to question whether a session bean is necessary at all, introducing the possibility of using entity beans and their Home methods instead of session beans.
解析外部实体引用的简单方法
因此,访问会话BeanAccountManagement中的业务方法的实体e JB都在一个全局事务中执行。
Therefore, Entity EJBs accesses in any business method of the session bean AccountManagement are executed in a global transaction.
位置独立性是由远程接口使用RMIover IIOP提供给无状态会话Bean或封装服务的实体home方法的。
Location independence is provided by remote interfaces using RMI over IIOP to stateless session beans or entity home methods that encapsulate the services.
在更新记录之前,我们通过实体对象方法set使用了乐观并发控制。
Before updating the record, we used optimistic concurrency control with the set entity object method.
为了与HelloWorldEntity实体bean对话,请添加以下远程方法。
Add the following remote methods to talk to the HelloWorldEntity entity bean.
在应用程序中通常为给定的实体bean定义额外的“finder ”方法。
It is common to have additional "finder" methods defined for a given entity bean within an application.
writeProcessingInstruction和writeComment方法可以分别编写实体引用、过程说明和注释。
Methods writeEntityRef, writeProcessingInstruction, and writeComment can write entity references, processing instructions, and comments, respectively.
自定义实体home方法可以执行此功能。
会话bean可以从数据库直接访问数据,也可以通过调用实体bean的方法来访问数据。
A session bean can access data directly from the database or it can invoke methods on an entity bean to do the same.
其中一个属性是CollectionIncrement,它允许定义调用e JB实体multi - finder方法时返回的集合大小。
One such property is collection Increment, which allows you to define the size of the collection returned when calling EJB entity multi-finder methods.
UMLSequenceDiagram视图中存在一系列的因果依赖事件,这些事件定义为方法实体和出口,也包括外部调用和返回调用(见图20)。
The UML sequence Diagram view presents a sequence of causal dependent events, where events are defined as method entries and exits, as well as outbound calls and return calls (see Figure 20).
persist方法将实体bean存为与之对应数据表的一条记录。
The EntityManager.persist method saves an entity bean object as a row in its mapped relational table.
可以为任何会话或实体bean方法指定事务属性。
The transaction attribute can be specified for any session or entity bean method. The following attributes are defined in the EJB 2.1 specification.
这适合于实体e JB、实体home方法、会话外观或(如您所称)D TO装配器类上的已委托的方法。
This applies to a delegated method on an entity EJB, an entity Home method, a session facade, or (as you call it) a DTO assembler class.
应用推荐