Skip to content
Snippets Groups Projects
Commit e4cd2f72 authored by CHERIF Maram's avatar CHERIF Maram
Browse files

ma nouvelle version

parent 345e291c
No related branches found
No related tags found
1 merge request!1commit to dev branch
......@@ -26,6 +26,13 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
......
......@@ -20,7 +20,7 @@ public class CompanyConverter implements Converter<String, Company> {
if (source == null || source.isEmpty()) {
return null;
}
return companyService.findById(Long.parseLong(source)).orElse(null); // ✅ Vérifier que findById retourne Optional<Company>
return companyService.findById(Long.parseLong(source)).orElse(null);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment