步骤Step4:把类映射到表。
将类映射到数据库表。
这种X - Y类映射是一种非常狭隘的学习方式。
在这个示例中,需要把book类映射到book元素中的数据。
In this example, you need to map the book class to the data in the book element.
首先将author类映射到dw_authors表。
每一个类映射到一个基本的RDBMS概念上,同时也映射到一个jdbc类上。
Each class maps onto a basic RDBMS concept as well as a JDBC class.
所以在这里我们不需要指定目标类的映射表。
So we do not need to specify the target class mapping table here.
向类添加字段并将它们映射到XML文件。
在创建映射时,必须为枚举的键传入这个类。
When you create the map, you must pass in the class for the enumerated key.
类的名称并不受映射模型的影响。
The name of the class itself is not affected by the mapping model.
每个author元素应该映射到author类的一个实例。
Each author element should map to an instance of the author class.
每个field元素都将被映射到simplebean类中的一个特定字段。
Each field element is mapped to a specific field in the SimpleBean class.
其中一种形式是把映射信息嵌入Ruby类定义当中。
One form embeds the mapping information in the Ruby class definition.
businesslogicbase类具有在分布式映射缓存存储和接收数据的方法。
The BusinessLogicBase class has methods to store and receive data from the Distributed Map.
表2:从图2映射的Flight类的操作。
book元素应该映射到book类的一个实例。
The book element should map to an instance of the book class.
下面的表2中Flight类操作的映射。
您不能拥有同一类型工件的两个区域映射。
You cannot have two field mappings to the same type of artifact.
用class元素对类进行映射。
该类将直接映射到主SipServlet实现类。
This class will map directly to the main SipServlet implementation class.
决定当前记录所属的类的属性,该属性映射到列。
The property (mapped to the column) that determines which class the current record belongs to.
决定当前记录所属的类的属性,该属性映射到列。
The property (mapped to the column) that determines which class the current record belongs to.
应用推荐