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

com.github.saphyra.randwo.mapping.itemlabel.repository.ItemLabelMappingConverter Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package com.github.saphyra.randwo.mapping.itemlabel.repository;

import org.springframework.stereotype.Component;

import com.github.saphyra.converter.ConverterBase;
import com.github.saphyra.randwo.mapping.itemlabel.domain.ItemLabelMapping;

@Component
public class ItemLabelMappingConverter extends ConverterBase {
    @Override
    protected ItemLabelMapping processEntityConversion(ItemLabelMappingEntity entity) {
        return ItemLabelMapping.builder()
            .mappingId(entity.getMappingId())
            .itemId(entity.getItemId())
            .labelId(entity.getLabelId())
            .build();
    }

    @Override
    protected ItemLabelMappingEntity processDomainConversion(ItemLabelMapping domain) {
        return ItemLabelMappingEntity.builder()
            .mappingId(domain.getMappingId())
            .itemId(domain.getItemId())
            .labelId(domain.getLabelId())
            .build();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy