This commit is contained in:
@@ -27,10 +27,24 @@ public @interface FilterJoinColumn {
|
|||||||
Class table();
|
Class table();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 默认使用join表(b)的主键, join表与被join表(a)的字段必须一样
|
*
|
||||||
|
* 单个关联字段, 默认使用join表(b)的主键, join表与被join表(a)的字段必须一样
|
||||||
|
* 例如: SELECT a.* FROM user a INNER JOIN record b ON a.userid = b.userid
|
||||||
|
* 那么注解为: @FilterJoinColumn(table = Record.class, column = "userid")
|
||||||
* <p>
|
* <p>
|
||||||
|
* @deprecated 使用columns 代替
|
||||||
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
String column() default "";
|
String column() default "";
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 多个关联字段, 默认使用join表(b)的主键, join表与被join表(a)的字段必须一样
|
||||||
|
* 例如: SELECT a.* FROM user a INNER JOIN record b ON a.userid = b.userid AND a.usertype = b.usertype
|
||||||
|
* 那么注解为: @FilterJoinColumn(table = Record.class, columns = {"userid", "usertype"})
|
||||||
|
* <p>
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
String[] columns() default {};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user