package com.server.api.models;

import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.OneToMany;
import jakarta.persistence.Table;
import java.util.List;

@Entity
@Table(name = "vorlageFlaechendruck")
public class VorlageFlaechendruck {

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

  private String printer;
  private String product_type;
  private Float height;
  private Float width;

  @OneToMany(mappedBy = "coordinate_id")
  private List<Coordinates> coordinates;

  // Getter und Setter
  public String getPrinter() {
    return printer;
  }

  public void setPrinter(String printer) {
    this.printer = printer;
  }

  public Long getId() {
    return flaechendruck_id;
  }

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

  public String getProduct_type() {
    return product_type;
  }

  public void setProduct_type(String product_type) {
    this.product_type = product_type;
  }

  public Float getHeight() {
    return height;
  }

  public void setHeight(Float height) {
    this.height = height;
  }

  public Float getWidth() {
    return width;
  }

  public void setWidth(Float width) {
    this.width = width;
  }

  public List<Coordinates> getCoordinates() {
    return coordinates;
  }

  public void setCoordinates(List<Coordinates> coordinates) {
    this.coordinates = coordinates;
  }
}
