package org.brapi.test.BrAPITestServer.model.entity.germ;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.Table;
import org.brapi.test.BrAPITestServer.model.entity.BrAPIBaseEntity;

@Entity
@Table(name = "seed_lot_content_mixture")
public class SeedLotContentMixtureEntity extends BrAPIBaseEntity {
    @Column
    private Integer mixturePercentage;
    @ManyToOne
    private GermplasmEntity germplasm;
    @ManyToOne
    private CrossEntity cross;
    @ManyToOne
    private SeedLotEntity seedLot;

    public Integer getMixturePercentage() {
        return mixturePercentage;
    }

    public void setMixturePercentage(Integer mixturePercentage) {
        this.mixturePercentage = mixturePercentage;
    }

    public GermplasmEntity getGermplasm() {
        return germplasm;
    }

    public void setGermplasm(GermplasmEntity germplasm) {
        this.germplasm = germplasm;
    }

    public CrossEntity getCross() {
        return cross;
    }

    public void setCross(CrossEntity cross) {
        this.cross = cross;
    }

    public SeedLotEntity getSeedLot() {
        return seedLot;
    }

    public void setSeedLot(SeedLotEntity seedLot) {
        this.seedLot = seedLot;
    }

}
