T - 主表类型,例如 CategoryC - 子表类型,例如 Productpublic class DefaultKeyMapping<T,C> extends Object implements KeyMapping<T,C>
KeyMapping 的默认实现,用于表示主表与子表的键映射关系。| Constructor and Description |
|---|
DefaultKeyMapping(FieldFn<T,?> parentKey,
FieldFn<C,?> childKey) |
| Modifier and Type | Method and Description |
|---|---|
FieldFn<C,?> |
childKey()
获取子表用于关联的键(通常是外键字段)。
|
FieldFn<T,?> |
parentKey()
获取主表用于关联的键(通常是主键字段)。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofpublic FieldFn<T,?> parentKey()
KeyMappingparentKey in interface KeyMapping<T,C>public FieldFn<C,?> childKey()
KeyMappingchildKey in interface KeyMapping<T,C>Copyright © 2024–2025 Dynamic-SQL. All rights reserved.