Created
April 7, 2021 15:09
-
-
Save nemrosim/c044622052b30d69426562bfe2d61527 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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