这个实体类如何与数据库联系起来?
由于明显的并发性需求,您应该首先在实体类上启用乐观锁。
Due to the obvious concurrency requirement, you would first enable optimistic locking on entity classes.
下面是如何定义命名查询,并将其与实体类关联的一个示例?
Below is an example of how you can define a named query and associate it with an entity class.
我们刚刚找到了8个实体类,我们认为这些都是我们系统中的类。
We have just identified eight entities that we believe are classes in our Auto Rental system.
RUP过程中的实体类大致上相当于前面提到的,业务级别的分析类。
RUP's entity classes are roughly equivalent to the business-level analysis classes above.
为生成的代码中的实体类指定基类。
Specifies the base class of the entity classes in the generated code.
由此强类型的属性将被加到实体类中。
Strongly-typed properties will be added to the entity classes based on this.
向导生成的实体类名称与对应的数据库表名完全一样。
The wizard generates an entity class with the same name as the corresponding database table.
下面的过程演示在尝试更新完整实体类时如何进行验证。
The following procedure shows how to validate when an attempt is made to update a complete entity class.
您的实体类必须在类上具有匹配字段,或者它可以作为可嵌入键嵌入该键
Your entity class must have matching fields on the class or it can embed the key as an embeddable key
演示如何创建一个实体类以及一个用于筛选实体类的简单查询。
Demonstrates how to create an entity class and a simple query to filter the entity class.
清单1展示了一个简单的EJB3实体类,称为GreetingCard。
Listing 1 shows a simple EJB3 entity class called GreetingCard.
在系统中记录实体类的创建者、修改者和相关日期等信息是一个很常见的需求。
It's a very common requirement to track creator, modifier and the according dates for entities.
这样可以更准确地表示实例化的实体类映射到单个数据记录的事实。
This is done to more accurately represent the fact that the instantiated entity class maps to a single record of data.
换句话说,实体类与数据库表或视图之间只能具有1:1映射关系。
In other words, an entity class can have only a 1:1 mapping relationship with a database table or view.
您可以使用编辑器,属性视图以及可视化建模图表,来创建并编辑JPA实体类。
You can use editors, property views, and visual modeling diagrams to create and edit JPA entity classes.
保存添加了对象类的组实体类型配置;实体类型配置的对象类显示在图29中。
Save the Group entity type configuration with the added object classes; the configured object classes for the entity type are shown in figure 29.
为了提高可读性,通过在实体类文件中直接指定的对象或关系元数据表达场景中的关系。
For better readability, the relationships in our scenario are expressed through object or relational metadata specified directly in the entity class files.
任何作为那些请求一部分的交换的信息(例如,参数)都由一个IO实体类的实例表示。
Any information exchanged as part of those requests (e.g., parameters) is represented by an instance of an IO Entity class.
加载器bean可以与必要的实体类名一起被加入到objectgrid .xml中。
A loader bean is added to the objectgrid.xml along with the necessary entity class names.
Person实体类的具体DAO应该增加一个特定于Person实体的finder方法。
The concrete DAO for the Person entity class should add finder methods that are specific to the Person entity.
这些类型可能为实体类本身,或是仅包装实体类中的特定字段以进行远程处理的特殊类。
Those types may be the entity classes themselves, or special classes that wrap only certain fields from the entity classes for remoting.
一个例子是你部署了两个EAR应用,它们的实体类(JPA、Hibernate等)共用同一个表。
An example of this is when you have two EARs deployed whose entity classes (JPA, Hibernate, etc.) Shared common tables.
对于实体类,必须至少有一个成员具有此特性,并应映射到相应表或视图中的主键或唯一键。
For an entity class, at least one member must have this attribute and should be mapped to the primary key or a unique key in the corresponding table or view.
特性的基类,这些特性定义如何将对象层中的类型映射到概念模型中的实体类型和复杂类型。
Base class for attributes that define how properties of types in the object layer are mapped to the properties of entity types or complex types in the conceptual model.
通常,它通过保留对单个线程有效的一级缓存实例,维护它负责的映射实体类实例的可识别性或状态,从而做到这一点。
Generally, it does this by maintaining awareness or state of the mapped entity class instances it is responsible for by keeping a first-level cache of instances, valid for a single thread.
每个IER的内容都表示OV - 6cIO实体类(见下)的实例,在此,属性表示DoDAF需要的数据特征。
Each IER's content represents an instantiation of an OV-6c IO Entity class (see below), where the attributes represent the data characteristics that the DoDAF requires.
实现此隔离的一种方式是,将自跟踪实体类型与模型分离,并将用于生成实体类型的模板移动到单独的类库中。
One way to achieve this isolation is to separate the self-tracking entity types from the model and move the template that generates the entity types into a separate class library.
一个实体类在业务模型中代表着一个实体,在我们的业务模型中,实体类是Customer、Order、和OrderItem。
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。
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.
应用推荐