style: code format。

This commit is contained in:
Suomm 2023-07-13 08:27:46 +08:00
parent 54657a14ee
commit 1f21023954
5 changed files with 28 additions and 27 deletions

View File

@ -30,7 +30,7 @@ public @interface Condition {
/** /**
* 列名 * 列名
*/ */
String column(); String column();
/** /**
* 逻辑值> , >= , = , IS NULL, IS NOT NULL * 逻辑值> , >= , = , IS NULL, IS NOT NULL

View File

@ -32,7 +32,7 @@ public @interface RelationManyToMany {
* *
* @return 属性名称 * @return 属性名称
*/ */
String selfField() default ""; String selfField() default "";
/** /**
* <p> * <p>
@ -64,47 +64,47 @@ public @interface RelationManyToMany {
* 目标实体类的关联属性 * 目标实体类的关联属性
* *
* @return 属性名称 * @return 属性名称
*/ */
String targetField() default ""; String targetField() default "";
/** /**
* 中间表名称 * 中间表名称
* *
* @return 中间表名称 * @return 中间表名称
*/ */
String joinTable(); String joinTable();
/** /**
* 中间表与当前表的关联字段 * 中间表与当前表的关联字段
* *
* @return 字段名称列名 * @return 字段名称列名
*/ */
String joinSelfColumn(); String joinSelfColumn();
/** /**
* 目标表的关联字段名称 * 目标表的关联字段名称
* *
* @return 字段名称和表 * @return 字段名称和表
*/ */
String joinTargetColumn(); String joinTargetColumn();
/** /**
* 查询时追加的额外条件 * 查询时追加的额外条件
*/ */
Condition[] extraConditions() default {}; Condition[] extraConditions() default {};
/** /**
* 查询排序 * 查询排序
* *
* @return 排序方式 * @return 排序方式
*/ */
String orderBy() default ""; String orderBy() default "";
/** /**
* 默认使用哪个数据源若系统找不到该指定的数据源时默认使用第一个数据源 * 默认使用哪个数据源若系统找不到该指定的数据源时默认使用第一个数据源
* *
* @return 数据源 * @return 数据源
*/ */
String dataSource() default ""; String dataSource() default "";
} }

View File

@ -64,7 +64,7 @@ public @interface RelationManyToOne {
* 目标实体类的关联属性 * 目标实体类的关联属性
* *
* @return 属性名称 * @return 属性名称
*/ */
String targetField() default ""; String targetField() default "";
/** /**
@ -92,7 +92,7 @@ public @interface RelationManyToOne {
* 默认使用哪个数据源若系统找不到该指定的数据源时默认使用第一个数据源 * 默认使用哪个数据源若系统找不到该指定的数据源时默认使用第一个数据源
* *
* @return 数据源 * @return 数据源
*/ */
String dataSource() default ""; String dataSource() default "";
} }

View File

@ -32,7 +32,7 @@ public @interface RelationOneToMany {
* *
* @return 属性名称 * @return 属性名称
*/ */
String selfField() default ""; String selfField() default "";
/** /**
* <p> * <p>
@ -64,8 +64,8 @@ public @interface RelationOneToMany {
* 目标实体类的关联属性 * 目标实体类的关联属性
* *
* @return 属性名称 * @return 属性名称
*/ */
String targetField(); String targetField();
/** /**
* 中间表名称一对一的关系是通过通过中间表维护时需要添加此项配置 * 中间表名称一对一的关系是通过通过中间表维护时需要添加此项配置
@ -97,21 +97,21 @@ public @interface RelationOneToMany {
* 查询排序 * 查询排序
* *
* @return 排序方式 * @return 排序方式
*/ */
String orderBy() default ""; String orderBy() default "";
/** /**
* 现在查询的数据量 * 现在查询的数据量
* *
* @return 数据量 * @return 数据量
*/ */
int limit() default 0; int limit() default 0;
/** /**
* 默认使用哪个数据源若系统找不到该指定的数据源时默认使用第一个数据源 * 默认使用哪个数据源若系统找不到该指定的数据源时默认使用第一个数据源
* *
* @return 数据源 * @return 数据源
*/ */
String dataSource() default ""; String dataSource() default "";
} }

View File

@ -22,6 +22,7 @@ import java.lang.annotation.Target;
/** /**
* 数据库表信息注解 * 数据库表信息注解
*
* @author Michael Yang * @author Michael Yang
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)