Skip to content

Instantly share code, notes, and snippets.

@nemrosim
Created April 7, 2021 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nemrosim/c044622052b30d69426562bfe2d61527 to your computer and use it in GitHub Desktop.
Save nemrosim/c044622052b30d69426562bfe2d61527 to your computer and use it in GitHub Desktop.
package com.nemrosim.services;
import com.nemrosim.models.User;
import com.nemrosim.repositories.UserRepository;
import java.util.List;
public class UserServiceImpl implements UserService {
private UserRepository repository;
@Override
public List<User> findAll() {
return repository.findAll();
}
public void setRepository(UserRepository repository) {
this.repository = repository;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment