package hozza.network.models.twitch.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity(name="country")
@Table(name="country")
public class MariaCountry 
{
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", updatable = false, nullable = false)
    private Long id;
    
    @Column(name = "name")
    private String name;

    @Column(name = "abbreviation")
    private String abbreviation;

    protected MariaCountry()
    {

    }

    public Long getId()
    {
        return this.id;
    }

    public MariaCountry(String name, String abbreviation)
    {
        this.name = name;
        this.abbreviation = abbreviation;
    }

    public String getName()
    {
        return this.name;
    }

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

    public String getAbbreviation() 
    {
        return abbreviation;
    }

    public void setAbbreviation(String abbreviation) 
    {
        this.abbreviation = abbreviation;
    }    
}
