All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.rtr.alchemy.service.config.IdentityMapping Maven / Gradle / Ivy

The newest version!
package io.rtr.alchemy.service.config;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import io.rtr.alchemy.dto.identities.IdentityDto;
import io.rtr.alchemy.mapping.Mapper;

/** Represents a one-directional mapping of one type to another */
public class IdentityMapping {
    private final Class dto;
    private final Class mapper;

    @JsonCreator
    public IdentityMapping(
            @JsonProperty("dto") Class dto,
            @JsonProperty("mapper") Class mapper) {
        this.dto = dto;
        this.mapper = mapper;
    }

    public Class getDtoType() {
        return dto;
    }

    public Class getMapperType() {
        return mapper;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy