package de.votian.services.repository;

import de.votian.services.entity.CostCenterAddress;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
import java.util.Optional;

public interface CostCenterAddressRepository extends JpaRepository<CostCenterAddress, Long> {

    List<CostCenterAddress> findByCostCenterId(Long costCenterId);

    Optional<CostCenterAddress> findByCostCenterIdAndAddressTypeId(Long costCenterId, Integer addressTypeId);
}
