fix (kinda) : refactored update of data, still trying to fix bug
Some checks failed
Format / formatting (push) Successful in 6s
Build / build (push) Failing after 39s
CI / build (push) Successful in 11s

from EntrepreneurApiServiceTests (code is a bit messy with prints and comments dw)
This commit is contained in:
Théo Le Lez
2025-04-06 19:22:18 +02:00
parent 9b9cfbdb2e
commit aaa6e46d0c
14 changed files with 327 additions and 59 deletions

View File

@ -5,7 +5,6 @@ import jakarta.persistence.*;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
@Entity
@Table(name = "project")
@ -69,17 +68,11 @@ public class Project {
@Override
public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) return false;
if (o == this) {
return true;
}
Project project = (Project) o;
return Objects.equals(listEntrepreneurParticipation, project.listEntrepreneurParticipation)
&& Objects.equals(listSectionCell, project.listSectionCell)
&& Objects.equals(idProject, project.idProject)
&& Objects.equals(projectName, project.projectName)
&& Objects.deepEquals(logo, project.logo)
&& Objects.equals(creationDate, project.creationDate)
&& projectStatus == project.projectStatus
&& Objects.equals(projectAdministrator, project.projectAdministrator)
&& Objects.equals(entrepreneurProposed, project.entrepreneurProposed);
return this.idProject == project.idProject;
}
public Long getIdProject() {