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

io.smilego.tenant.model.Service 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_service", schema = "tenant")
public class Service extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @NotNull
    @Column(name = "name", length = 248, unique = true, nullable = false)
    private String name;

    public Service() {
    }

    public Service(@NotNull String name) {
        super();
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Service{" +
                "name='" + name + '\'' +
                '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy