提交 | 用户 | 时间
|
71e81e
|
1 |
package cn.stylefeng.guns.base.db.entity; |
懒 |
2 |
|
|
3 |
import com.baomidou.mybatisplus.annotation.*; |
|
4 |
|
|
5 |
import java.io.Serializable; |
|
6 |
import java.util.Date; |
|
7 |
|
|
8 |
/** |
|
9 |
* <p> |
|
10 |
* 数据库信息表 |
|
11 |
* </p> |
|
12 |
* |
|
13 |
* @author stylefeng |
|
14 |
* @since 2019-06-15 |
|
15 |
*/ |
|
16 |
@TableName("database_info") |
|
17 |
public class DatabaseInfo implements Serializable { |
|
18 |
|
|
19 |
private static final long serialVersionUID = 1L; |
|
20 |
|
|
21 |
/** |
|
22 |
* 主键id |
|
23 |
*/ |
|
24 |
@TableId(value = "db_id", type = IdType.ID_WORKER) |
|
25 |
private Long dbId; |
|
26 |
|
|
27 |
/** |
|
28 |
* 数据库名称(英文名称) |
|
29 |
*/ |
|
30 |
@TableField("db_name") |
|
31 |
private String dbName; |
|
32 |
|
|
33 |
/** |
|
34 |
* jdbc的驱动类型 |
|
35 |
*/ |
|
36 |
@TableField("jdbc_driver") |
|
37 |
private String jdbcDriver; |
|
38 |
|
|
39 |
/** |
|
40 |
* 数据库连接的账号 |
|
41 |
*/ |
|
42 |
@TableField("user_name") |
|
43 |
private String userName; |
|
44 |
|
|
45 |
/** |
|
46 |
* 数据库连接密码 |
|
47 |
*/ |
|
48 |
@TableField("password") |
|
49 |
private String password; |
|
50 |
|
|
51 |
/** |
|
52 |
* jdbc的url |
|
53 |
*/ |
|
54 |
@TableField("jdbc_url") |
|
55 |
private String jdbcUrl; |
|
56 |
|
|
57 |
/** |
|
58 |
* 备注,摘要 |
|
59 |
*/ |
|
60 |
@TableField("remarks") |
|
61 |
private String remarks; |
|
62 |
|
|
63 |
/** |
|
64 |
* 创建时间 |
|
65 |
*/ |
|
66 |
@TableField(value = "create_time", fill = FieldFill.INSERT) |
|
67 |
private Date createTime; |
|
68 |
|
|
69 |
|
|
70 |
public Long getDbId() { |
|
71 |
return dbId; |
|
72 |
} |
|
73 |
|
|
74 |
public void setDbId(Long dbId) { |
|
75 |
this.dbId = dbId; |
|
76 |
} |
|
77 |
|
|
78 |
public String getDbName() { |
|
79 |
return dbName; |
|
80 |
} |
|
81 |
|
|
82 |
public void setDbName(String dbName) { |
|
83 |
this.dbName = dbName; |
|
84 |
} |
|
85 |
|
|
86 |
public String getJdbcDriver() { |
|
87 |
return jdbcDriver; |
|
88 |
} |
|
89 |
|
|
90 |
public void setJdbcDriver(String jdbcDriver) { |
|
91 |
this.jdbcDriver = jdbcDriver; |
|
92 |
} |
|
93 |
|
|
94 |
public String getUserName() { |
|
95 |
return userName; |
|
96 |
} |
|
97 |
|
|
98 |
public void setUserName(String userName) { |
|
99 |
this.userName = userName; |
|
100 |
} |
|
101 |
|
|
102 |
public String getPassword() { |
|
103 |
return password; |
|
104 |
} |
|
105 |
|
|
106 |
public void setPassword(String password) { |
|
107 |
this.password = password; |
|
108 |
} |
|
109 |
|
|
110 |
public String getJdbcUrl() { |
|
111 |
return jdbcUrl; |
|
112 |
} |
|
113 |
|
|
114 |
public void setJdbcUrl(String jdbcUrl) { |
|
115 |
this.jdbcUrl = jdbcUrl; |
|
116 |
} |
|
117 |
|
|
118 |
public String getRemarks() { |
|
119 |
return remarks; |
|
120 |
} |
|
121 |
|
|
122 |
public void setRemarks(String remarks) { |
|
123 |
this.remarks = remarks; |
|
124 |
} |
|
125 |
|
|
126 |
public Date getCreateTime() { |
|
127 |
return createTime; |
|
128 |
} |
|
129 |
|
|
130 |
public void setCreateTime(Date createTime) { |
|
131 |
this.createTime = createTime; |
|
132 |
} |
|
133 |
|
|
134 |
@Override |
|
135 |
public String toString() { |
|
136 |
return "DatabaseInfo{" + |
|
137 |
"dbId=" + dbId + |
|
138 |
", dbName=" + dbName + |
|
139 |
", jdbcDriver=" + jdbcDriver + |
|
140 |
", userName=" + userName + |
|
141 |
", password=" + password + |
|
142 |
", jdbcUrl=" + jdbcUrl + |
|
143 |
", remarks=" + remarks + |
|
144 |
", createTime=" + createTime + |
|
145 |
"}"; |
|
146 |
} |
|
147 |
} |