package com.company.tt1.entity;

import io.jmix.core.metamodel.annotation.JmixEntity;
import io.jmix.data.DdlGeneration;
import jakarta.persistence.*;

@DdlGeneration(value = DdlGeneration.DbScriptGenerationMode.DISABLED)
@JmixEntity
@Table(name = "fpsp")
@Entity
public class Fpsp {
    @Column(name = "id", nullable = false)
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @JoinColumn(name = "ammm_id", nullable = false)
    @ManyToOne(fetch = FetchType.LAZY, optional = false)
    private Ammm ammm;

    @JoinColumn(name = "fcxp_id", nullable = false)
    @ManyToOne(fetch = FetchType.LAZY, optional = false)
    private Fcxp fcxp;

    @Column(name = "fpsp_vv", nullable = false)
    private Integer fpspVv;

    @JoinColumn(name = "fpyt_id", nullable = false)
    @ManyToOne(fetch = FetchType.LAZY, optional = false)
    private Fpyt fpyt;

    @Column(name = "refe_tx", nullable = false, length = 200)
    private String refeTx;

    @Column(name = "saii_pk", unique = true, length = 20)
    private String saiiPk;

    public String getSaiiPk() {
        return saiiPk;
    }

    public void setSaiiPk(String saiiPk) {
        this.saiiPk = saiiPk;
    }

    public String getRefeTx() {
        return refeTx;
    }

    public void setRefeTx(String refeTx) {
        this.refeTx = refeTx;
    }

    public Fpyt getFpyt() {
        return fpyt;
    }

    public void setFpyt(Fpyt fpyt) {
        this.fpyt = fpyt;
    }

    public Integer getFpspVv() {
        return fpspVv;
    }

    public void setFpspVv(Integer fpspVv) {
        this.fpspVv = fpspVv;
    }

    public Fcxp getFcxp() {
        return fcxp;
    }

    public void setFcxp(Fcxp fcxp) {
        this.fcxp = fcxp;
    }

    public Ammm getAmmm() {
        return ammm;
    }

    public void setAmmm(Ammm ammm) {
        this.ammm = ammm;
    }

    public Integer getId() {
        return id;
    }

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

}