add
yj
2024-12-05 b9900893177c78fc559223521fe839aa21000017
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.dobbinsoft.fw.support.annotation;
 
import com.dobbinsoft.fw.support.annotation.enums.ListLeafType;
 
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
 
/**
 * Created with IntelliJ IDEA.
 * Description:
 * 叶子子表, 表示子表下再无其他子表。且只关联一个外键。
 * 用法:将其注释在Dto的属性上,当使用 selectDto、deleteDto时,不指定属性,可默认当作指定
 * User: rize
 * Date: 2021/3/31
 * Time: 09:00
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface LeafTable {
 
    /**
     * 是否批量插入, 若业务上存在字段不一致,则需要单个插入,这里就该false
     * 若字段不一致,但是使用了批量插入,就会报错
     * @return
     */
    boolean batch() default true;
 
    /**
     * 是否在selectListDto\selectPage 时包含此字段
     * @return
     */
    ListLeafType containsList() default ListLeafType.WITHOUT;
 
}