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

import jakarta.persistence.*;
import org.brapi.test.BrAPITestServer.model.entity.BrAPIPrimaryEntity;

import java.util.List;

@Entity
@Table(name = "linkageGroup")
public class LinkageGroupEntity extends BrAPIPrimaryEntity {
    @ManyToOne
    private GenomeMapEntity genomeMap;
    @Column
    private String linkageGroupName;
    @Column
    private Integer maxMarkerPosition;
    @OneToMany(mappedBy = "linkageGroup")
    private List<MarkerPositionEntity> markers;

    public Integer getMaxMarkerPosition() {
        return maxMarkerPosition;
    }

    public void setMaxMarkerPosition(Integer maxMarkerPosition) {
        this.maxMarkerPosition = maxMarkerPosition;
    }

    public GenomeMapEntity getGenomeMap() {
        return genomeMap;
    }

    public void setGenomeMap(GenomeMapEntity genomeMap) {
        this.genomeMap = genomeMap;
    }

    public String getLinkageGroupName() {
        return linkageGroupName;
    }

    public void setLinkageGroupName(String linkageGroupName) {
        this.linkageGroupName = linkageGroupName;
    }

    public List<MarkerPositionEntity> getMarkers() {
        return markers;
    }

    public void setMarkers(List<MarkerPositionEntity> markers) {
        this.markers = markers;
    }
}
