!130 optimize javadoc

Merge pull request !130 from 王帅/main
This commit is contained in:
Michael Yang 2023-07-13 00:36:33 +00:00 committed by Gitee
commit ce1096c837
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
6 changed files with 89 additions and 41 deletions

View File

@ -28,17 +28,17 @@ import java.lang.annotation.*;
public @interface Condition { public @interface Condition {
/** /**
* 列名 * 列名
*/ */
String column(); String column();
/** /**
* 逻辑值> , >= , = , IS NULL, IS NOT NULL * 逻辑值> , >= , = , IS NULL, IS NOT NULL
*/ */
String logic() default " = "; String logic() default " = ";
/** /**
* *
*/ */
String[] value() default {}; String[] value() default {};

View File

@ -35,14 +35,26 @@ public @interface RelationManyToMany {
String selfField() default ""; String selfField() default "";
/** /**
* 目标实体类对应的表的 schema一般情况下关联数据不是 entity而是 vodto 等需要配置此项 * <p>
* 目标实体类对应的表的 schema 模式
*
* <p>
* 如果目标实体类没有使用 {@code @Table(schema = "...")} 指定 schema
* 需要在这里指定对应表的 schema 一般关联数据不是 entity 对象而是 vodto
* 等需要配置此项
* *
* @return schema 名称 * @return schema 名称
*/ */
String targetSchema() default ""; String targetSchema() default "";
/** /**
* 目标实体类对应的表一般情况下关联数据不是 entity而是 vodto 等需要配置此项 * <p>
* 目标实体类对应的表名
*
* <p>
* 如果目标实体类没有使用 {@code @Table(value = "...")} 指定表名时
* 需要在这里指定对应表的表名一般关联数据不是 entity 对象而是 vodto
* 等需要配置此项
* *
* @return 表名 * @return 表名
*/ */
@ -77,7 +89,7 @@ public @interface RelationManyToMany {
String joinTargetColumn(); String joinTargetColumn();
/** /**
* 查询时追加的额外条件 * 查询时追加的额外条件
*/ */
Condition[] extraConditions() default {}; Condition[] extraConditions() default {};
@ -95,5 +107,4 @@ public @interface RelationManyToMany {
*/ */
String dataSource() default ""; String dataSource() default "";
} }

View File

@ -35,14 +35,26 @@ public @interface RelationManyToOne {
String selfField(); String selfField();
/** /**
* 目标实体类对应的表的 schema一般情况下关联数据不是 entity而是 vodto 等需要配置此项 * <p>
* 目标实体类对应的表的 schema 模式
*
* <p>
* 如果目标实体类没有使用 {@code @Table(schema = "...")} 指定 schema
* 需要在这里指定对应表的 schema 一般关联数据不是 entity 对象而是 vodto
* 等需要配置此项
* *
* @return schema 名称 * @return schema 名称
*/ */
String targetSchema() default ""; String targetSchema() default "";
/** /**
* 目标实体类对应的表一般情况下关联数据不是 entity而是 vodto 等需要配置此项 * <p>
* 目标实体类对应的表名
*
* <p>
* 如果目标实体类没有使用 {@code @Table(value = "...")} 指定表名时
* 需要在这里指定对应表的表名一般关联数据不是 entity 对象而是 vodto
* 等需要配置此项
* *
* @return 表名 * @return 表名
*/ */

View File

@ -35,14 +35,26 @@ public @interface RelationOneToMany {
String selfField() default ""; String selfField() default "";
/** /**
* 目标实体类对应的表的 schema一般情况下关联数据不是 entity而是 vodto 等需要配置此项 * <p>
* 目标实体类对应的表的 schema 模式
*
* <p>
* 如果目标实体类没有使用 {@code @Table(schema = "...")} 指定 schema
* 需要在这里指定对应表的 schema 一般关联数据不是 entity 对象而是 vodto
* 等需要配置此项
* *
* @return schema 名称 * @return schema 名称
*/ */
String targetSchema() default ""; String targetSchema() default "";
/** /**
* 目标实体类对应的表一般情况下关联数据不是 entity而是 vodto 等需要配置此项 * <p>
* 目标实体类对应的表名
*
* <p>
* 如果目标实体类没有使用 {@code @Table(value = "...")} 指定表名时
* 需要在这里指定对应表的表名一般关联数据不是 entity 对象而是 vodto
* 等需要配置此项
* *
* @return 表名 * @return 表名
*/ */
@ -77,7 +89,7 @@ public @interface RelationOneToMany {
String joinTargetColumn() default ""; String joinTargetColumn() default "";
/** /**
* 查询时追加的额外条件 * 查询时追加的额外条件
*/ */
Condition[] extraConditions() default {}; Condition[] extraConditions() default {};

View File

@ -35,14 +35,26 @@ public @interface RelationOneToOne {
String selfField() default ""; String selfField() default "";
/** /**
* 目标实体类对应的表的 schema一般情况下关联数据不是 entity而是 vodto 等需要配置此项 * <p>
* 目标实体类对应的表的 schema 模式
*
* <p>
* 如果目标实体类没有使用 {@code @Table(schema = "...")} 指定 schema
* 需要在这里指定对应表的 schema 一般关联数据不是 entity 对象而是 vodto
* 等需要配置此项
* *
* @return schema 名称 * @return schema 名称
*/ */
String targetSchema() default ""; String targetSchema() default "";
/** /**
* 目标实体类对应的表一般情况下关联数据不是 entity而是 vodto 等需要配置此项 * <p>
* 目标实体类对应的表名
*
* <p>
* 如果目标实体类没有使用 {@code @Table(value = "...")} 指定表名时
* 需要在这里指定对应表的表名一般关联数据不是 entity 对象而是 vodto
* 等需要配置此项
* *
* @return 表名 * @return 表名
*/ */

View File

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