Created
February 10, 2019 15:00
-
-
Save theopendle/0c625d2f2226452a66c01dc5afc7337a 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
@Service | |
public class ClientServiceImpl implements ClientService { | |
@Autowired | |
private ClientMapper clientMapper; | |
@Override | |
public Client getClient(final Long id) { | |
return clientMapper.selectOne(id); | |
} | |
@Override | |
public List<Client> getClients() { | |
return clientMapper.findAll(); | |
} | |
@Override | |
public void createClient(final Client client) { | |
clientMapper.insertClient(client); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment