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

com.github.saphyra.randwo.key.repository.KeyDao Maven / Gradle / Ivy

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

import java.util.List;
import java.util.Optional;
import java.util.UUID;

import org.springframework.stereotype.Component;

import com.github.saphyra.dao.AbstractDao;
import com.github.saphyra.randwo.key.domain.Key;

@Component
public class KeyDao extends AbstractDao {
    public KeyDao(KeyConverter converter, KeyRepository repository) {
        super(converter, repository);
    }

    public Optional findByKeyValue(String keyValue) {
        return converter.convertEntity(repository.findByKeyValue(keyValue));
    }

    public List getAll() {
        return converter.convertEntity(repository.findAll());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy