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

ma nouvelle version

parent 345e291c
Branches
No related tags found
1 merge request!1commit to dev branch
...@@ -26,6 +26,13 @@ ...@@ -26,6 +26,13 @@
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId> <artifactId>spring-boot-starter-data-jpa</artifactId>
......
...@@ -20,7 +20,7 @@ public class CompanyConverter implements Converter<String, Company> { ...@@ -20,7 +20,7 @@ public class CompanyConverter implements Converter<String, Company> {
if (source == null || source.isEmpty()) { if (source == null || source.isEmpty()) {
return null; 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