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

com.github.saphyra.randwo.item.repository.ItemConverter Maven / Gradle / Ivy

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

import org.springframework.stereotype.Component;

import com.github.saphyra.converter.ConverterBase;
import com.github.saphyra.randwo.item.domain.Item;

@Component
public class ItemConverter extends ConverterBase {
    @Override
    protected Item processEntityConversion(ItemEntity itemEntity) {
        return Item.builder()
            .itemId(itemEntity.getItemId())
            .build();
    }

    @Override
    protected ItemEntity processDomainConversion(Item item) {
        return ItemEntity.builder()
            .itemId(item.getItemId())
            .build();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy