20#ifndef ORES_ACCOUNTS_REPOSITORY_ROLE_PERMISSION_MAPPER_HPP
21#define ORES_ACCOUNTS_REPOSITORY_ROLE_PERMISSION_MAPPER_HPP
23#include "ores.accounts/domain/role_permission.hpp"
24#include "ores.accounts/repository/role_permission_entity.hpp"
25#include "ores.utility/log/make_logger.hpp"
27namespace ores::accounts::repository {
34 inline static std::string_view logger_name =
35 "ores.accounts.repository.role_permission_mapper";
37 [[nodiscard]]
static auto& lg() {
39 static auto instance = make_logger(logger_name);
46 static std::vector<domain::role_permission>
47 map(
const std::vector<role_permission_entity>& v);
48 static std::vector<role_permission_entity>
49 map(
const std::vector<domain::role_permission>& v);
Implements logging for ORE Studio.
Definition lifecycle_manager.hpp:30
Represents the assignment of a permission to a role.
Definition role_permission.hpp:34
Represents a role-permission assignment in the database.
Definition role_permission_entity.hpp:39
Maps role_permission domain entities to data storage layer and vice-versa.
Definition role_permission_mapper.hpp:32