io.smilego.tenant.model.Property Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of multi-tenant-spring-boot-starter Show documentation
Show all versions of multi-tenant-spring-boot-starter Show documentation
A application used as an example on how to set up pushing
its components to the Central Repository.
package io.smilego.tenant.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
@Entity
@Table(name = "t_property", schema = "tenant")
public class Property extends BaseEntity {
private static final long serialVersionUID = 1L;
@NotNull
@Column(name = "code", length = 248, unique = true, nullable = false)
private String code;
@NotNull
@Column(name = "description", length = 248, nullable = false)
private String description;
public Property() {
}
public Property(@NotNull String code, @NotNull String description) {
super();
this.code = code;
this.description = description;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public String toString() {
return "Property{" +
"code='" + code + '\'' +
", description='" + description + '\'' +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy