24 lines
616 B
Java
24 lines
616 B
Java
|
package com.cubetiqs.demo.service;
|
||
|
|
||
|
import com.cubetiqs.demo.domain.UserEntity;
|
||
|
import com.cubetiqs.demo.repository.UserRepository;
|
||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||
|
import org.springframework.stereotype.Service;
|
||
|
|
||
|
import java.util.List;
|
||
|
|
||
|
@Service
|
||
|
public class UserServiceImpl implements UserService {
|
||
|
private final UserRepository userRepository;
|
||
|
|
||
|
@Autowired
|
||
|
public UserServiceImpl(UserRepository userRepository) {
|
||
|
this.userRepository = userRepository;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public List<UserEntity> findAllUsers() {
|
||
|
return userRepository.findAll();
|
||
|
}
|
||
|
}
|