package cn.com.qmth.stmms.biz.mark.model;

import javax.persistence.*;

@Entity
@Table(name = "m_special_tag")
public class MarkSpecialTag {

    @Id
    @GeneratedValue
    private Integer id;

    @Column(name = "library_id", nullable = false)
    private Integer libraryId;

    @Column(name = "tag_name", nullable = false)
    private String tagName;

    @Column(name = "position_x", nullable = false)
    private Double positionX;

    @Column(name = "position_y", nullable = false)
    private Double positionY;

    /**
     * 所在裁切图序号
     */
    @Column(name = "offset_index", nullable = false)
    private Integer offsetIndex;

    /**
     * 相对裁切图X轴坐标
     */
    @Column(name = "offset_x", nullable = false)
    private Integer offsetX;

    /**
     * 相对裁切图Y轴坐标
     */
    @Column(name = "offset_y", nullable = false)
    private Integer offsetY;

    public MarkSpecialTag() {
    }

    public Integer getId() {
        return id;
    }

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

    public Integer getLibraryId() {
        return libraryId;
    }

    public void setLibraryId(Integer libraryId) {
        this.libraryId = libraryId;
    }

    public String getTagName() {
        return tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }

    public Double getPositionX() {
        return positionX;
    }

    public void setPositionX(Double positionX) {
        this.positionX = positionX;
    }

    public Double getPositionY() {
        return positionY;
    }

    public void setPositionY(Double positionY) {
        this.positionY = positionY;
    }

    public Integer getOffsetIndex() {
        return offsetIndex;
    }

    public void setOffsetIndex(Integer offsetIndex) {
        this.offsetIndex = offsetIndex;
    }

    public Integer getOffsetX() {
        return offsetX;
    }

    public void setOffsetX(Integer offsetX) {
        this.offsetX = offsetX;
    }

    public Integer getOffsetY() {
        return offsetY;
    }

    public void setOffsetY(Integer offsetY) {
        this.offsetY = offsetY;
    }
}
