做完啦萬歲ㄎㄎㄎ
This commit is contained in:
@ -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);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -16,6 +16,6 @@ public class PetService {
|
||||
public List<PetEntity> getPetByID(Iterable<Integer> id) {
|
||||
|
||||
return dao.findAllById(id);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user