Return Streamable in StaffManagement.findAll

This commit is contained in:
Eren Asker 2023-11-23 16:34:57 +01:00 committed by Denis Natusch
parent 795ccc31d2
commit 403cc56ae0
No known key found for this signature in database
GPG key ID: 5E57BD8EDACFA985

View file

@ -4,6 +4,7 @@ import java.util.Optional;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.SessionAttributes;
import org.springframework.stereotype.Component;
import org.springframework.data.util.Streamable;
@Component
@Transactional
@ -28,7 +29,7 @@ public class StaffManagement {
staffRepository.save(staff);
}
public Iterable<Staff> findAll() {
public Streamable<Staff> findAll() {
return staffRepository.findAll();
}