shikeying
2022-09-27 26f5dd8ef80e5671cda8fc0e6c0d0298c4e678ff
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
package com.iplatform.model.po;
 
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.walker.jdbc.BasePo;
 
/**
 * 表名:RC_VIDEO_USER *
 * @author genrator
 */
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
public class Rc_video_user extends BasePo<Rc_video_user> {
    // 序列化版本号
    private static final long serialVersionUID = 1L;
 
    /**
     * 用于兼容老写法
     */
    @JsonIgnore
    public static final Rc_video_user ROW_MAPPER = new Rc_video_user();
 
    // 主键
    private Long id = null;
    @JsonIgnore
    protected boolean isset_id = false;
 
    // 属性列表
    private Long user_id = null;
    @JsonIgnore
    protected boolean isset_user_id = false;
 
    private String video_id = null;
    @JsonIgnore
    protected boolean isset_video_id = false;
 
    private Double score = null;
    @JsonIgnore
    protected boolean isset_score = false;
 
    private Long create_time = null;
    @JsonIgnore
    protected boolean isset_create_time = false;
 
    /**
     * 默认构造函数
     */
    public Rc_video_user() {
    }
 
    /**
     * 根据主键构造对象
     */
    public Rc_video_user(Long id) {
        this.setId(id);
    }
 
    /**
     * 设置主键值
     */
    @Override
    public void setPkValue(Object value) {
        this.setId((Long) value);
    }
 
    public Long getId() {
        return this.id;
    }
 
    public void setId(Long id) {
        this.id = id;
        this.isset_id = true;
    }
 
    @JsonIgnore
    public boolean isEmptyId() {
        return this.id == null;
    }
 
    public Long getUser_id() {
        return this.user_id;
    }
 
    public void setUser_id(Long user_id) {
        this.user_id = user_id;
        this.isset_user_id = true;
    }
 
    @JsonIgnore
    public boolean isEmptyUser_id() {
        return this.user_id == null;
    }
 
    public String getVideo_id() {
        return this.video_id;
    }
 
    public void setVideo_id(String video_id) {
        this.video_id = video_id;
        this.isset_video_id = true;
    }
 
    @JsonIgnore
    public boolean isEmptyVideo_id() {
        return this.video_id == null || this.video_id.length() == 0;
    }
 
    public Double getScore() {
        return this.score;
    }
 
    public void setScore(Double score) {
        this.score = score;
        this.isset_score = true;
    }
 
    @JsonIgnore
    public boolean isEmptyScore() {
        return this.score == null;
    }
 
    public Long getCreate_time() {
        return this.create_time;
    }
 
    public void setCreate_time(Long create_time) {
        this.create_time = create_time;
        this.isset_create_time = true;
    }
 
    @JsonIgnore
    public boolean isEmptyCreate_time() {
        return this.create_time == null;
    }
 
    /**
     * 重写 toString() 方法
     */
    @Override
    public String toString() {
        return new StringBuilder()
                .append("id=").append(this.id)
                .append("user_id=").append(this.user_id)
                .append("video_id=").append(this.video_id)
                .append("score=").append(this.score)
                .append("create_time=").append(this.create_time)
                .toString();
    }
 
    /**
     * 克隆
     */
    public Rc_video_user $clone() {
        Rc_video_user rc_video_user = new Rc_video_user();
 
        // 数据库名称
        //rc_video_user.setDatabaseName_(this.getDatabaseName_());
 
        // 主键
        if (this.isset_id) {
            rc_video_user.setId(this.getId());
        }
        // 普通属性
        if (this.isset_user_id) {
            rc_video_user.setUser_id(this.getUser_id());
        }
        if (this.isset_video_id) {
            rc_video_user.setVideo_id(this.getVideo_id());
        }
        if (this.isset_score) {
            rc_video_user.setScore(this.getScore());
        }
        if (this.isset_create_time) {
            rc_video_user.setCreate_time(this.getCreate_time());
        }
        return rc_video_user;
    }
}