mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-07-19 21:04:36 +02:00
Return Streamable in StaffManagement.findAll
This commit is contained in:
parent
795ccc31d2
commit
403cc56ae0
|
@ -4,6 +4,7 @@ import java.util.Optional;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
import org.springframework.web.bind.annotation.SessionAttributes;
|
import org.springframework.web.bind.annotation.SessionAttributes;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.data.util.Streamable;
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
@Transactional
|
@Transactional
|
||||||
|
@ -28,7 +29,7 @@ public class StaffManagement {
|
||||||
staffRepository.save(staff);
|
staffRepository.save(staff);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Iterable<Staff> findAll() {
|
public Streamable<Staff> findAll() {
|
||||||
return staffRepository.findAll();
|
return staffRepository.findAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue