@RequestMapping(value = "/savedepartmentemployee", method = RequestMethod.POST) public void saveDepartmentEmployee( @Validated @RequestBody DepartmentEmployee departmentEmployee) { departmentEmployeeRepo.save(departmentEmployee); }
@RequestMapping(value = "/deletedepartmentemployee", method = RequestMethod.POST) public void deleteDepartmentEmployee(@RequestBody DepartmentEmployee departmentEmployee) { departmentEmployeeRepo.delete(departmentEmployee.getId()); }
@RequestMapping(value = "/loaddepartmentemployee") public Page<DepartmentEmployee> loadDepartmentEmployee(Pageable pageable) { return departmentEmployeeRepo.findAll(pageable); }