package org.takiguchi.cerberus.cerberusapp.persistence.model;

import com.fasterxml.jackson.annotation.JsonView;
import org.takiguchi.cerberus.cerberusapp.model.ServiceType;

import javax.persistence.*;
import java.util.UUID;

import static javax.persistence.EnumType.ORDINAL;

@Entity
@Table(name = "application")
public class ApplicationEntity {
    @Id
    @GeneratedValue(generator = "system-uuid")
    private UUID id;
    private String name;
    private String serviceName;
    @Enumerated
    private ServiceType serviceType;

    public ApplicationEntity() {
    }

    public ApplicationEntity(UUID id, String name, String serviceName, ServiceType serviceType) {
        this.id = id;
        this.name = name;
        this.serviceName = serviceName;
        this.serviceType = serviceType;
    }

    public UUID getId() {
        return id;
    }

    public void setId(UUID id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

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

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public ServiceType getServiceType() {
        return serviceType;
    }

    public void setServiceType(ServiceType serviceType) {
        this.serviceType = serviceType;
    }
}
