This commit is contained in:
kamhung
2015-12-04 13:58:55 +08:00
parent c1ca5635b8
commit f6cf06c741

View File

@@ -27,10 +27,24 @@ public @interface FilterJoinColumn {
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>
* @deprecated 使用columns 代替
*
* @return
*/
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 {};
}