Any information exchanged as part of those requests (e.g., parameters) is represented by an instance of an IO Entity class.
任何作为那些请求一部分的交换的信息(例如,参数)都由一个IO实体类的实例表示。
With this approach, you map an entire class hierarchy into one data entity, where all the attributes of all the classes in the hierarchy are stored.
使用这种方法,您可以将一个完整类层次结构映射成一个数据实体,而层次结构中所有类的所有属性都存储在这个实体中。
Each class in the relationship model can be mapped to an entity EJB component.
关系模型中的每个类均可以映射一个实体e JB组件。
For better readability, the relationships in our scenario are expressed through object or relational metadata specified directly in the entity class files.
为了提高可读性,通过在实体类文件中直接指定的对象或关系元数据表达场景中的关系。
How does this entity class tie in with a database?
这个实体类如何与数据库联系起来?
The auto mapping feature USES a set of conventions to automatically map all entities, not requesting a mapping class per entity.
自动映射特性使用一套规则来自动映射所有实体,并非每个实体都需要映射类。
Each business entity will become an entity class.
每一个业务实体都将变成一个实体类。
Figure 8 presents the solution for the third mapping strategy — mapping a single class to a single data entity.
图8显示了第三种映射策略的解决方案——将单个类映射成单个数据实体。
Figure 7 presents the persistence model when each concrete class is mapped to a data entity.
图7显示了将每个具体类映射成数据实体时的持久性模型。
These are documented in the model with sequence diagrams and class diagrams, which would include the specification of a reservation entity and a controller class (for entity management).
在模型中使用包含保留实体的详尽规格和控制器类(用于实体管理)的程序表和类表把它们纪录成文档。
The heart of every application is the base model that describes it -- a domain model, class model, logical model, entity model, or the like.
每一个应用系统的核心是描述这个系统的基础模型 --领域模型、类模型、逻辑模型、实体模型等等。
Using the special attribute override, you can map the fields of the embeddable class within the entity.
使用特殊的属性覆盖,可以将可嵌入类的字段映射到实体中。
Figure 6 presents the updated persistence model for mapping the entire class hierarchy into one data entity.
图6显示了一个更新过的持久性模型,用于将整个类层次结构映射成一个数据实体。
A class is annotated as an entity and annotated with the customer.
类被标注为一个实体并使用客户标注。
Using one data entity per class.
每个类使用一个数据实体。
I'll start by creating a base class that holds an instance of an Entity object.
我将首先创建一个基类,用于容纳entity对象的一个实例。
Using one data entity per concrete class.
每个具体类使用一个数据实体。
Using one data entity for an entire class hierarchy.
整个类层次结构使用一个数据实体。
A loader bean is added to the objectgrid.xml along with the necessary entity class names.
加载器bean可以与必要的实体类名一起被加入到objectgrid .xml中。
Your entity class must have matching fields on the class or it can embed the key as an embeddable key
您的实体类必须在类上具有匹配字段,或者它可以作为可嵌入键嵌入该键
Create a Customer entity class.
创建一个Customer实体类。
For example, an entity class named Department is assumed to map to a database tabled named Department.
例如,假设一个名为Department的实体类,与一个名为Department的数据库表相映射。
Figure 1 shows the entire Department table, along with the corresponding entity class.
图1显示出了整个的department表,以及相应的实体类。
An Entity class needs a primary key.
Entity类需要一个主键。
Instead, you can use the Hibernate Validator annotations to assign validation criteria to the properties of your entity class, as shown in Listing 13.
取而代之,可以使用HibernateValidator注释向实体类属性指派验证标准,如清单13所示。
The key to the dependency-injection approach is that you query data by injecting the Class of the entity that the DAO will be querying, along with defining the generic type.
依赖项注入方式的关键是,在查询数据时,要注入DAO将查询的实体的Class并定义泛型类型。
Listing 1 shows a simple EJB3 entity class called GreetingCard.
清单1展示了一个简单的EJB3实体类,称为GreetingCard。
It is a first class entity in the meta-model of SimpleRDB, but it has no equivalent in UML 2.0. That is why the signature of the relation has no formal parameter that relates a UML element.
它是SimpleRDB的通用模型的第一个类实体,但是在UML 2.0中没有它的对等体。这就是关联的签名没有与uml元素相关的形式参数的原因。
An entity class is a class that represents an entity in a business model. In our model, the entity classes are Customer, Order, and OrderItem.
一个实体类在业务模型中代表着一个实体,在我们的业务模型中,实体类是Customer、Order、和OrderItem。
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以支持新实体。
应用推荐