package org.geelato.core.meta.model.connect;

import org.geelato.core.meta.annotation.Col;
import org.geelato.core.meta.annotation.Entity;
import org.geelato.core.meta.annotation.Title;
import org.geelato.core.meta.model.entity.BaseEntity;
import org.geelato.core.meta.model.entity.EntityEnableAble;

/**
 * @author lynch.liu
 */
@Title(title = "数据库连接信息")
@Entity(name = "platform_dev_db_connect")
public class ConnectMeta extends BaseEntity implements EntityEnableAble{

    private String dbConnectName;
    private String dbName;
    private String dbSchema;
    private String dbType;
    private String dbUserName;
    private String dbPassword;
    private int dbPort;
    private String dbHostnameIp;
    private int enableStatus;

    @Col(name = "db_connect_name", nullable = false, charMaxlength = 255)
    @Title(title = "连接名称", description = "连接名称")
    public String getDbConnectName() {
        return dbConnectName;
    }

    public void setDbConnectName(String dbConnectName) {
        this.dbConnectName = dbConnectName;
    }

    @Col(name = "db_name", nullable = false, charMaxlength = 150)
    @Title(title = "数据库名", description = "数据库名")
    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    @Col(name = "db_schema", nullable = false, charMaxlength = 255)
    @Title(title = "数据库schema", description = "数据库schema")
    public String getDbSchema() {
        return dbSchema;
    }

    public void setDbSchema(String dbSchema) {
        this.dbSchema = dbSchema;
    }

    @Col(name = "db_type", nullable = false, charMaxlength = 20)
    @Title(title = "数据库类型", description = "数据来自字典")
    public String getDbType() {
        return dbType;
    }

    public void setDbType(String dbType) {
        this.dbType = dbType;
    }

    @Col(name = "db_user_name", nullable = false, charMaxlength = 20)
    @Title(title = "用户名", description = "用户名")
    public String getDbUserName() {
        return dbUserName;
    }

    public void setDbUserName(String dbUserName) {
        this.dbUserName = dbUserName;
    }

    @Col(name = "db_password", nullable = false, charMaxlength = 50)
    @Title(title = "密码", description = "密码")
    public String getDbPassword() {
        return dbPassword;
    }

    public void setDbPassword(String dbPassword) {
        this.dbPassword = dbPassword;
    }

    @Col(name = "db_port")
    @Title(title = "连接端口", description = "连接端口")
    public int getDbPort() {
        return dbPort;
    }

    public void setDbPort(int dbPort) {
        this.dbPort = dbPort;
    }

    @Col(name = "db_hostname_ip", nullable = false, charMaxlength = 150)
    @Title(title = "主机名或IP", description = "主机名或IP")
    public String getDbHostnameIp() {
        return dbHostnameIp;
    }

    public void setDbHostnameIp(String dbHostnameIp) {
        this.dbHostnameIp = dbHostnameIp;
    }

    @Title(title = "启用状态", description = "1表示启用、0表示未启用")
    @Col(name = "enable_status", nullable = false, dataType = "tinyint", numericPrecision = 1)
    @Override
    public int getEnableStatus() {
        return this.enableStatus;
    }

    @Override
    public void setEnableStatus(int enableStatus) {
        this.enableStatus = enableStatus;
    }
}

@@ -462,16 +462,17 @@
 ableAble
+ 
 %7B%0A%0A    p
@@ -3027,30 +3027,8 @@
 lse,
- dataType = %22tinyint%22,
  num

Update ConnectMeta.java