io.smilego.tenant.model.Tenant Maven / Gradle / Ivy
package io.smilego.tenant.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.Size;
@Entity
@Table(name = "t_tenant", schema = "tenant")
public class Tenant extends BaseEntity {
private static final long serialVersionUID = 1L;
public static final String TENANT_DATABASE_PREFIX = "smilego_";
@Size(max = 30)
@Column(name = "tenant_id")
private String tenantId;
@Size(max = 30)
@Column(name = "db")
private String db;
@Size(max = 30)
@Column(name = "password")
private String password;
@Size(max = 256)
@Column(name = "url")
private String url;
public String getTenantId() {
return tenantId;
}
public void setTenantId(String tenantId) {
this.tenantId = tenantId;
}
public String getDb() {
return db;
}
public void setDb(String db) {
this.db = db;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy