24 lines
446 B
Java
24 lines
446 B
Java
|
package co.jp.app.service;
|
||
|
|
||
|
import java.util.List;
|
||
|
|
||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||
|
import org.springframework.stereotype.Service;
|
||
|
|
||
|
import co.jp.app.entity.PetEntity;
|
||
|
import co.jp.app.repository.uploadRepository;
|
||
|
|
||
|
@Service
|
||
|
public class uploadService {
|
||
|
|
||
|
@Autowired
|
||
|
private uploadRepository uploadDao;
|
||
|
|
||
|
public List<PetEntity> saveAll(Iterable<PetEntity> entities) {
|
||
|
|
||
|
return uploadDao.saveAll(entities);
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|