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

com.github.saphyra.randwo.label.repository.LabelConverter Maven / Gradle / Ivy

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

import org.springframework.stereotype.Component;

import com.github.saphyra.converter.ConverterBase;
import com.github.saphyra.randwo.label.domain.Label;

@Component
public class LabelConverter extends ConverterBase {
    @Override
    protected Label processEntityConversion(LabelEntity labelEntity) {
        return Label.builder()
            .labelId(labelEntity.getLabelId())
            .labelValue(labelEntity.getLabelValue())
            .build();
    }

    @Override
    protected LabelEntity processDomainConversion(Label label) {
        return LabelEntity.builder()
            .labelId(label.getLabelId())
            .labelValue(label.getLabelValue())
            .build();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy