文件名更正

This commit is contained in:
2025-05-08 15:50:04 +09:00
parent 6e71978a77
commit ab8f36d000
2 changed files with 4 additions and 3 deletions

View File

@ -7,9 +7,10 @@ import org.springframework.data.repository.query.Param;
import co.jp.app.entity.ErrorEntity;
public interface ErraRepository extends JpaRepository<ErrorEntity, Integer>{
public interface ErrRepository extends JpaRepository<ErrorEntity, Integer>{
public default ErrorEntity getById(@Param("id") int id) {
return getById(id);
}
}

View File

@ -4,14 +4,14 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import co.jp.app.entity.ErrorEntity;
import co.jp.app.repository.ErraRepository;
import co.jp.app.repository.ErrRepository;
@Service
public class ErraService {
@Autowired
ErraRepository erraRepository;
ErrRepository erraRepository;
public ErrorEntity getStatusById(int id) {
return erraRepository.getById(id);