package com.eactive.httpmockserver.api.entity;


import javax.persistence.*;

@Entity
@Table(name = "MOCK_RESPONSE_CONDITION")
public class MockCondition {

    @ManyToOne
    @JoinColumn(name = "MOCK_RESPONSE_ID", nullable = false)
    private MockResponse mockResponse;

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

    private String type;

    private String key;

    private String value;

    public MockResponse getMockResponse() {
        return mockResponse;
    }

    public void setMockResponse(MockResponse mockResponse) {
        this.mockResponse = mockResponse;
    }

    public Long getId() {
        return id;
    }

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

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
