package cz.utb.tadis.attacks.model;

import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Entity
@Table(name = "soft_target_types")
public class SoftTargetType {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @NotNull
    @Enumerated(EnumType.STRING)
    private SoftTargetTypeEnum softTargetType;

    @Size(max = 250)
    private String softTargetTypeDetail;

    public SoftTargetType() {
    }

    public SoftTargetType(@NotNull SoftTargetTypeEnum softTargetType, @Size(max = 250) String softTargetTypeDetail) {
        this.softTargetType = softTargetType;
        this.softTargetTypeDetail = softTargetTypeDetail;
    }

    public Long getId() {
        return id;
    }

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

    public SoftTargetTypeEnum getSoftTargetType() {
        return softTargetType;
    }

    public void setSoftTargetType(SoftTargetTypeEnum softTargetType) {
        this.softTargetType = softTargetType;
    }

    public String getSoftTargetTypeDetail() {
        return softTargetTypeDetail;
    }

    public void setSoftTargetTypeDetail(String softTargetTypeDetail) {
        this.softTargetTypeDetail = softTargetTypeDetail;
    }
}
