package de.votian.services.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.IdClass;
import jakarta.persistence.Table;

@Entity
@Table(name = "serviceplzareamapping")
@IdClass(ServiceZipCodeAreaMappingId.class)
public class ServiceZipCodeAreaMapping {

    @Id
    @Column(name = "srvp_id")
    private Long zipCodeId;

    @Id
    @Column(name = "srvpa_id")
    private Long areaId;

    public Long getZipCodeId() {
        return zipCodeId;
    }

    public void setZipCodeId(Long zipCodeId) {
        this.zipCodeId = zipCodeId;
    }

    public Long getAreaId() {
        return areaId;
    }

    public void setAreaId(Long areaId) {
        this.areaId = areaId;
    }
}
