Create Service, Entity and Repository for Client and Location. Client add test to BDD done

This commit is contained in:
Olivier PARPAILLON
2025-07-09 10:00:21 +02:00
parent c226657ca6
commit b2fffa9f9f
11 changed files with 158 additions and 11 deletions

View File

@@ -0,0 +1,9 @@
package fr.eni.demo.dal;
import fr.eni.demo.bo.Client;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ClientRepository extends JpaRepository<Client, Integer> {
}

View File

@@ -3,7 +3,7 @@ package fr.eni.demo.dal;
import java.util.List;
import fr.eni.demo.bo.Employe;
public interface EmployeDAO {
public interface EmployeRepository {
void create(Employe employe);
Employe read(Integer id);

View File

@@ -6,7 +6,7 @@ import fr.eni.demo.bo.Employe;
import org.springframework.stereotype.Repository;
@Repository
public class EmployeDAOImpl implements EmployeDAO {
public class EmployeRepositoryImpl implements EmployeRepository {
private List<Employe> employes = new ArrayList<>();
@Override

View File

@@ -0,0 +1,9 @@
package fr.eni.demo.dal;
import fr.eni.demo.bo.Location;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface LocationRepository extends JpaRepository<Location, Long> {
}