Battle-Cattle/BCUK-Bot-3

View on GitHub
src/main/java/com/expiredminotaur/bcukbot/sql/tasks/PunishmentRepository.java

Summary

Maintainability
A
0 mins
Test Coverage
package com.expiredminotaur.bcukbot.sql.tasks;

import org.jetbrains.annotations.NotNull;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface PunishmentRepository extends CrudRepository<Punishment, Long>
{
    @Override
    @NotNull
    List<Punishment> findAll();

    List<Punishment> findByPunishmentGiven(boolean hasBeenGiven);
}