1
hao
2025-05-20 8e24c6fea30d9b179375ee2893710cdec2443b13
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
package com.app.base.entity;
 
import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.validation.constraints.NotNull;
 
/**
 * 增加编码、名称字段
 * @author tanxiang
 *
 */
@MappedSuperclass
public abstract class CommonEntity extends AuditEntity {
    private static final long serialVersionUID = -8557069300645817687L;
 
    /**
     * 编码
     */
    @NotNull
    @Column(length = 200)
    protected String bsCode;
    /**
     * 名称
     */
    @NotNull
    @Column(length = 100)
    protected String bsName;
 
    public String getBsCode() {
        return bsCode;
    }
    public void setBsCode(String bsCode) {
        this.bsCode = bsCode;
    }
    public String getBsName() {
        return bsName;
    }
    public void setBsName(String bsName) {
        this.bsName = bsName;
    }
}