Service fix, add Location and add location to client done

This commit is contained in:
Olivier PARPAILLON
2025-07-09 10:09:17 +02:00
parent b2fffa9f9f
commit 36b6313335
3 changed files with 40 additions and 18 deletions

View File

@@ -12,14 +12,6 @@ public class ClientService {
private ClientRepository clientRepository;
public void add(Client client) {
if (client.getPrenom() == null) {
Client clientTest = new Client();
clientTest.setPrenom("Olivier");
clientTest.setNom("Parpaillon");
clientTest.setEmail("olivier@test.fr");
clientRepository.save(clientTest);
} else {
clientRepository.save(client);
}
clientRepository.save(client);
}
}