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

import org.takiguchi.cerberus.cerberusapp.model.ServiceType;

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

@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;
    private String image;

    public ApplicationEntity() {
    }

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

    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 String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

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