首先,您通常要具有一个映射到对应数据库表主键的(代理)对象标识符。
First, you usually want to have a (surrogate) object identifier that maps to the primary key of the corresponding database table.
可以将该代理列指定为主键列。
This surrogate column can be designated the primary key column.
本文描述了实现作为主键的代理键的三种方法。
This article described three approaches to implementing a surrogate key as primary key.
应用推荐