Google Java Format
This commit is contained in:
parent
7a9955b781
commit
f629fb4a4e
@ -23,7 +23,8 @@ public class AdministrateursController {
|
|||||||
public Administrateurs getAdministrateursById(@PathVariable Long id) {
|
public Administrateurs getAdministrateursById(@PathVariable Long id) {
|
||||||
Optional<Administrateurs> administrateur = this.administrateursRepository.findById(id);
|
Optional<Administrateurs> administrateur = this.administrateursRepository.findById(id);
|
||||||
if (administrateur.isEmpty()) {
|
if (administrateur.isEmpty()) {
|
||||||
throw new ResponseStatusException(HttpStatus.NOT_FOUND, "Cet administrateur n'existe pas");
|
throw new ResponseStatusException(
|
||||||
|
HttpStatus.NOT_FOUND, "Cet administrateur n'existe pas");
|
||||||
}
|
}
|
||||||
return administrateur.get();
|
return administrateur.get();
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,8 @@ public class EntrepreneursController {
|
|||||||
public Entrepreneurs getEntrepreneursById(@PathVariable Long id) {
|
public Entrepreneurs getEntrepreneursById(@PathVariable Long id) {
|
||||||
Optional<Entrepreneurs> entrepreneur = entrepreneursRepository.findById(id);
|
Optional<Entrepreneurs> entrepreneur = entrepreneursRepository.findById(id);
|
||||||
if (entrepreneur.isEmpty()) {
|
if (entrepreneur.isEmpty()) {
|
||||||
throw new ResponseStatusException(HttpStatus.NOT_FOUND, "Cet entrepreneur n'existe pas");
|
throw new ResponseStatusException(
|
||||||
|
HttpStatus.NOT_FOUND, "Cet entrepreneur n'existe pas");
|
||||||
}
|
}
|
||||||
return entrepreneur.get();
|
return entrepreneur.get();
|
||||||
}
|
}
|
||||||
@ -38,7 +39,8 @@ public class EntrepreneursController {
|
|||||||
@PathVariable Long id, String ecole, String filiere, Boolean status_snee) {
|
@PathVariable Long id, String ecole, String filiere, Boolean status_snee) {
|
||||||
Optional<Entrepreneurs> entrepreneur = entrepreneursRepository.findById(id);
|
Optional<Entrepreneurs> entrepreneur = entrepreneursRepository.findById(id);
|
||||||
if (entrepreneur.isEmpty()) {
|
if (entrepreneur.isEmpty()) {
|
||||||
throw new ResponseStatusException(HttpStatus.NOT_FOUND, "Cet entrepreneur n'existe pas");
|
throw new ResponseStatusException(
|
||||||
|
HttpStatus.NOT_FOUND, "Cet entrepreneur n'existe pas");
|
||||||
}
|
}
|
||||||
if (ecole != null) {
|
if (ecole != null) {
|
||||||
entrepreneur.get().setEcole(ecole);
|
entrepreneur.get().setEcole(ecole);
|
||||||
|
@ -37,7 +37,10 @@ public class Sections {
|
|||||||
public Sections() {}
|
public Sections() {}
|
||||||
|
|
||||||
public Sections(
|
public Sections(
|
||||||
Long id_section, String titre, String contenu_section, LocalDateTime date_modification) {
|
Long id_section,
|
||||||
|
String titre,
|
||||||
|
String contenu_section,
|
||||||
|
LocalDateTime date_modification) {
|
||||||
this.id_section = id_section;
|
this.id_section = id_section;
|
||||||
this.titre = titre;
|
this.titre = titre;
|
||||||
this.contenu_section = contenu_section;
|
this.contenu_section = contenu_section;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user