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 = "employeecostcenter")
@IdClass(EmployeeCostCenterId.class)
public class EmployeeCostCenter {

    @Id
    @Column(name = "emp_id")
    private Long employeeId;

    @Id
    @Column(name = "csc_id")
    private Long costCenterId;

    public EmployeeCostCenter() {
    }

    public EmployeeCostCenter(Long employeeId, Long costCenterId) {
        this.employeeId = employeeId;
        this.costCenterId = costCenterId;
    }

    public Long getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(Long employeeId) {
        this.employeeId = employeeId;
    }

    public Long getCostCenterId() {
        return costCenterId;
    }

    public void setCostCenterId(Long costCenterId) {
        this.costCenterId = costCenterId;
    }
}
