api: Random stuff
parent
0f19f75d48
commit
4520f418f7
|
@ -52,7 +52,11 @@ public class SkillsPage {
|
||||||
*/
|
*/
|
||||||
@GetMapping({ "/", "" })
|
@GetMapping({ "/", "" })
|
||||||
public String profile(Model model) {
|
public String profile(Model model) {
|
||||||
model.addAttribute("employee", employeeDetails.getEmployeeByEid(user).orElse(null));
|
var employee = employeeDetails.getEmployeeByEid(user).orElse(null);
|
||||||
|
if (employee == null) {
|
||||||
|
return "/404";
|
||||||
|
}
|
||||||
|
model.addAttribute("employee", employee);
|
||||||
model.addAttribute("skills", skillService.getUserSkills(user));
|
model.addAttribute("skills", skillService.getUserSkills(user));
|
||||||
return "/pages/skills/overview";
|
return "/pages/skills/overview";
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,7 +24,7 @@ public class Employee {
|
||||||
private String lastName;
|
private String lastName;
|
||||||
|
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
@JoinColumn(name = "FID", referencedColumnName = "fid")
|
@JoinColumn(name = "fid")
|
||||||
private FormOfAddress formOfAddress;
|
private FormOfAddress formOfAddress;
|
||||||
|
|
||||||
private LocalTime dStart;
|
private LocalTime dStart;
|
||||||
|
|
Loading…
Reference in New Issue