Commit 7c02143e4e5bde5725ad3b3b9739dfc2b70c1dea
1 parent
4ceffe1e
Correction /consommation tris
Showing
3 changed files
with
8 additions
and
3 deletions
Show diff stats
src/main/java/etunicorn/Application.java
... | ... | @@ -51,6 +51,11 @@ public class Application { |
51 | 51 | permissionRepository.save(new Permission("CONSO_GET")); |
52 | 52 | permissionRepository.save(new Permission("CONSO_LIST")); |
53 | 53 | permissionRepository.save(new Permission("CONSO_REMOVE")); |
54 | + permissionRepository.save(new Permission("EVNMT_ADD")); | |
55 | + permissionRepository.save(new Permission("EVNMT_EDIT")); | |
56 | + permissionRepository.save(new Permission("EVNMT_GET")); | |
57 | + permissionRepository.save(new Permission("EVNMT_LIST")); | |
58 | + permissionRepository.save(new Permission("EVNMT_REMOVE")); | |
54 | 59 | // ... |
55 | 60 | |
56 | 61 | //roleRepository.save(new Role("admin", (List<Permission>) permissionRepository.findAll())); | ... | ... |
src/main/java/etunicorn/controller/PersonneController.java
... | ... | @@ -44,7 +44,7 @@ public class PersonneController extends BaseController implements etunicorn.gene |
44 | 44 | |
45 | 45 | private ResponseEntity<?> mergePersonne(Personne personne, UpdatePersonneRequest updatePersonneRequest) { |
46 | 46 | if (updatePersonneRequest.getNaissance() != null) { |
47 | - SimpleDateFormat format = new SimpleDateFormat("y-M-d"); | |
47 | + SimpleDateFormat format = new SimpleDateFormat("Y-M-d"); | |
48 | 48 | try { |
49 | 49 | personne.setNaissance(format.parse(updatePersonneRequest.getNaissance())); |
50 | 50 | } catch (ParseException e) { | ... | ... |
src/main/java/etunicorn/entity/Evenement.java