标签的属性指定了要映射的类,以及它的映射表。
The tag's attributes specifies the class being mapped, and its mapping table in the database.
如果映射表中此列于这个类的属性名相同,column属性可以省略。
The column attribute can be omitted if the column in the mapping table has the same name as the class property being mapped.
table属性指定类的映射表
The table attribute specifies the mapping table for that class
colum n属性指定当前类的映射表与目标类用作外键的列。
The column attribute specifies the column in the mapping table for the owning class that is used as the foreign key to the target class.
我们已经标识了类和类对应的映射表,接下来我们需要标识类的标识属性和映射表中的标识列。
Once we have identified the class being identified and its mapping table, we need to specify the identity property of the class and its corresponding identity column in the mapping table.
清单6修改了代码,以传递代表路线属性的哈希映射表。
Listing 6 changes the code to pass a hash map representing the attributes for a trail.
我们提到一个使用特定于应用程序的元素和属性名的映射表示法作为JSON的友好格式,而不是规范的JSONx名称。
We refer to a mapping notation that USES application specific element and attribute names, instead of the canonical JSONx names, as the friendly format for JSON.
没有奇怪的地方,仅仅确定了book和映射表(dw_books)以及如何映射对象的属性(isbn和title)。
None of this is surprising; it just takes the book class and identifies the table to map to (dw_books) and how to map that object's properties (isbn and title).
<many-to-many>标签中的column属性用来指定连接表与目标类的映射表链接的外键。
The <many-to-many> tag's column attribute specifies the foreign key column in the link table that relates the link table to the mapping table for the target class.
<many-to-many>标签中的column属性用来指定连接表与目标类的映射表链接的外键。
The <many-to-many> tag's column attribute specifies the foreign key column in the link table that relates the link table to the mapping table for the target class.
应用推荐