|
@@ -9,7 +9,21 @@ import java.lang.annotation.*;
|
|
@Target(ElementType.FIELD)
|
|
@Target(ElementType.FIELD)
|
|
@Inherited
|
|
@Inherited
|
|
public @interface LinkMany {
|
|
public @interface LinkMany {
|
|
|
|
+ /**
|
|
|
|
+ * 主表字段
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
String linkField() ;
|
|
String linkField() ;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 使用哪个mapper来关联查询
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
Class linkMapper();
|
|
Class linkMapper();
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 从表关联字段
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
String linkPrimaryField();
|
|
String linkPrimaryField();
|
|
}
|
|
}
|