Skip to content
Discussion options

You must be logged in to vote

I SOLVED IT

    @ReactiveTransactional
    @Override
    public Uni<Notification> createNotification(Notification notification) {
        return employeeService.getCurrentEmp()
                .chain(employee -> {
                    notification.setEmployee(employee);
                    return absenceTypeService.<AbsenceType>findById(0l);
                }).onItem().transformToUni(item -> {
                    notification.setAbsenceType(item);
                    return notification.persistAndFlush();
                });
    }

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LR-Argentino
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant