An Entity class needs a primary key.
Entity类需要一个主键。
Any information exchanged as part of those requests (e.g., parameters) is represented by an instance of an IO Entity class.
任何作为那些请求一部分的交换的信息(例如,参数)都由一个IO实体类的实例表示。
I'll start by creating a base class that holds an instance of an Entity object.
我将首先创建一个基类,用于容纳entity对象的一个实例。
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并定义泛型类型。
Create a Customer entity class.
创建一个Customer实体类。
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.
自动映射特性使用一套规则来自动映射所有实体,并非每个实体都需要映射类。
Using one data entity per class.
每个类使用一个数据实体。
Listing 1 shows a simple EJB3 entity class called GreetingCard.
清单1展示了一个简单的EJB3实体类,称为GreetingCard。
Using the special attribute override, you can map the fields of the embeddable class within the entity.
使用特殊的属性覆盖,可以将可嵌入类的字段映射到实体中。
Figure 1 shows the entire Department table, along with the corresponding entity class.
图1显示出了整个的department表,以及相应的实体类。
Using one data entity per concrete class.
每个具体类使用一个数据实体。
A loader bean is added to the objectgrid.xml along with the necessary entity class names.
加载器bean可以与必要的实体类名一起被加入到objectgrid .xml中。
For better readability, the relationships in our scenario are expressed through object or relational metadata specified directly in the entity class files.
为了提高可读性,通过在实体类文件中直接指定的对象或关系元数据表达场景中的关系。
Select the Book entity from the class diagram.
从类图中选择book实体。
Using one data entity for an entire class hierarchy.
整个类层次结构使用一个数据实体。
Figure 6 presents the updated persistence model for mapping the entire class hierarchy into one data entity.
图6显示了一个更新过的持久性模型,用于将整个类层次结构映射成一个数据实体。
Figure 8 presents the solution for the third mapping strategy — mapping a single class to a single data entity.
图8显示了第三种映射策略的解决方案——将单个类映射成单个数据实体。
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所示。
Figure 7 presents the persistence model when each concrete class is mapped to a data entity.
图7显示了将每个具体类映射成数据实体时的持久性模型。
The Apache Wink run time USES the asset class to construct the actual response entity by calling the corresponding method of the asset class.
ApacheWink运行时通过调用资产类对应的方法构建实际的响应实体。
The Subject class is used to encapsulate the credentials of an authenticated entity such as a user.
subject类被用于封装一个被认证实体(比如用户)的凭证。
Furthermore, I'd be tempted to simply consider the entire hierarchy as one entity for now, since the remaining class, Country, only adds one contract, and frankly it's not all that exciting.
而且,现在我会倾向于把整个层次结构简单地看作一个实体,因为剩余的类Country仅仅添加了一个契约,坦白地说它并不是那样令人兴奋。
Each instance of a class entity represents a row within the database table.
每一个实体类的实例代表数据库表中的一行。
As you can see, we simply bind to the User property of the entity class.
正如你所看到的,我们只是绑定到实体类的用户属性。
Specifies the base class of the entity classes in the generated code.
为生成的代码中的实体类指定基类。
The following procedure shows how to validate when an attempt is made to update a complete entity class.
下面的过程演示在尝试更新完整实体类时如何进行验证。
This entity can be the class factory object or any other client.
这个实体能够是类工厂对象或其它客户端。
With this approach each data entity includes both the attributes and the inherited attributes of the class that it represents.
使用这种方法,每个数据实体就既包含属性又包含它所表示的类继承的属性。
With this approach each data entity includes both the attributes and the inherited attributes of the class that it represents.
使用这种方法,每个数据实体就既包含属性又包含它所表示的类继承的属性。
应用推荐