All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.smilego.tenant.model.Property Maven / Gradle / Ivy

Go to download

A application used as an example on how to set up pushing its components to the Central Repository.

There is a newer version: 1.2.5
Show newest version
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