Add Location Entity, Service and Repository. Add Test to add a location line for a client wich rent a game

This commit is contained in:
Olivier PARPAILLON
2025-07-09 15:47:13 +02:00
parent e633ec5a5f
commit 3fd8990079
12 changed files with 139 additions and 34 deletions

View File

@@ -5,6 +5,8 @@ import fr.eni.demo.dal.ClientRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Optional;
@Service
public class ClientService {
@@ -14,4 +16,8 @@ public class ClientService {
public void add(Client client) {
clientRepository.save(client);
}
public Optional<Client> findById(Long clientId) {
return clientRepository.findById(clientId);
}
}