做完啦萬歲ㄎㄎㄎ

This commit is contained in:
2025-05-14 18:51:11 +09:00
parent da38955955
commit c668251a3e
14 changed files with 15 additions and 32 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target/

View File

@ -1,2 +1,5 @@
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/main/resources=UTF-8
encoding//src/test/java=UTF-8
encoding/<project>=UTF-8

View File

@ -1,17 +1,12 @@
package co.jp.app.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import co.jp.app.entity.PetEntity;
@Repository
public interface DownloadRepository extends JpaRepository<PetEntity, Integer>{
@Override
default List<PetEntity> findAllById(Iterable<Integer> id) {
return findAllById(id);
}
}

View File

@ -2,15 +2,12 @@ package co.jp.app.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import co.jp.app.entity.ErrorEntity;
@Repository
public interface ErrRepository extends JpaRepository<ErrorEntity, Integer>{
public default ErrorEntity getById(@Param("id") int id) {
return getById(id);
}
}

View File

@ -1,15 +1,10 @@
package co.jp.app.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import co.jp.app.entity.PetEntity;
@Repository
public interface PetRepository extends JpaRepository<PetEntity, Integer> {
@Override
default List<PetEntity> findAllById(Iterable<Integer> id) {
return findAllById(id);
}
}

View File

@ -1,18 +1,12 @@
package co.jp.app.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import co.jp.app.entity.PetEntity;
@Repository
public interface UploadRepository extends JpaRepository<PetEntity, Integer>{
@Override
default <S extends PetEntity> List<S> saveAll(Iterable<S> entities) {
// TODO 自動生成されたメソッド・スタブ
return saveAll(entities);
}
}

View File

@ -16,6 +16,6 @@ public class PetService {
public List<PetEntity> getPetByID(Iterable<Integer> id) {
return dao.findAllById(id);
}
}

View File

@ -1,2 +0,0 @@
/META-INF/
/co/

View File

@ -1,6 +1,6 @@
#Generated by Maven Integration for Eclipse
#Wed May 14 11:48:45 JST 2025
m2e.projectLocation=C\:\\Users\\ichbi\\OneDrive\\\u30C7\u30B9\u30AF\u30C8\u30C3\u30D7\\dog-1
#Wed May 14 17:49:21 JST 2025
m2e.projectLocation=C\:\\Users\\ichbi\\git\\Dog-1
m2e.projectName=dog-1
groupId=co.jp.app
artifactId=dog-2