20#ifndef ORES_CONNECTIONS_REPOSITORY_CONNECTION_MAPPER_HPP
21#define ORES_CONNECTIONS_REPOSITORY_CONNECTION_MAPPER_HPP
24#include "ores.connections/domain/connection.hpp"
25#include "ores.connections/repository/connection_entity.hpp"
27namespace ores::connections::repository {
29class connection_mapper final {
31 static connection_entity to_entity(
const domain::connection& conn);
32 static domain::connection to_domain(
const connection_entity& e);
33 static std::vector<connection_entity> to_entities(
34 const std::vector<domain::connection>& conns);
35 static std::vector<domain::connection> to_domain(
36 const std::vector<connection_entity>& entities);