com.github.saphyra.randwo.item.repository.ItemDao Maven / Gradle / Ivy
package com.github.saphyra.randwo.item.repository;
import java.util.List;
import java.util.UUID;
import org.springframework.stereotype.Component;
import com.github.saphyra.dao.AbstractDao;
import com.github.saphyra.randwo.item.domain.Item;
@Component
public class ItemDao extends AbstractDao {
public ItemDao(ItemConverter converter, ItemRepository repository) {
super(converter, repository);
}
public List- getAll() {
return converter.convertEntity(repository.findAll());
}
}