package de.votian.services.entity;

import jakarta.persistence.*;
import java.math.BigDecimal;

@Entity
@Table(name = "tourarticle")
public class TourArticle {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "trat_id")
    private Long id;

    @Column(name = "jb_id")
    private Long jobId;

    @Column(name = "tr_sort")
    private Integer tourSort;

    @Column(name = "tr_id")
    private Long tourId;

    @Column(name = "at_id")
    private Long articleTypeId;

    @Column(name = "trat_quantity")
    private Integer quantity;

    @Column(name = "trat_weight")
    private BigDecimal weight;

    @Column(name = "trat_price")
    private BigDecimal price;

    @Column(name = "trat_packingpieces")
    private Integer packingPieces;

    public TourArticle() {}

    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    public Long getJobId() { return jobId; }
    public void setJobId(Long jobId) { this.jobId = jobId; }
    public Integer getTourSort() { return tourSort; }
    public void setTourSort(Integer tourSort) { this.tourSort = tourSort; }
    public Long getTourId() { return tourId; }
    public void setTourId(Long tourId) { this.tourId = tourId; }
    public Long getArticleTypeId() { return articleTypeId; }
    public void setArticleTypeId(Long articleTypeId) { this.articleTypeId = articleTypeId; }
    public Integer getQuantity() { return quantity; }
    public void setQuantity(Integer quantity) { this.quantity = quantity; }
    public BigDecimal getWeight() { return weight; }
    public void setWeight(BigDecimal weight) { this.weight = weight; }
    public BigDecimal getPrice() { return price; }
    public void setPrice(BigDecimal price) { this.price = price; }
    public Integer getPackingPieces() { return packingPieces; }
    public void setPackingPieces(Integer packingPieces) { this.packingPieces = packingPieces; }
}
