Skip to content

Conversation

@radovanradic
Copy link
Contributor

No description provided.

@oracle-contributor-agreement
Copy link

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
The following contributors of this PR have not signed the OCA:

To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. label Nov 20, 2023
@radovanradic radovanradic force-pushed the mn-jsonview-sample-update branch from 762338a to b5f0acc Compare November 22, 2023 12:33
@radovanradic radovanradic force-pushed the mn-jsonview-sample-update branch from b5f0acc to 6495c80 Compare November 22, 2023 15:20
List<StudentScheduleView> scheduleViews = courses.stream()
.map(c -> new StudentScheduleView(null, new CourseView(c.id(), c.name(), new TeacherView(c.teacher().id(), c.teacher().name()), c.room(), c.time()))).toList();
StudentView studentView = new StudentView(createDto.student(), createDto.averageGrade(),
scheduleViews);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This returns auto increment ID created from the jdv insert and sets to the studentView instance being returned.

@gvenzl gvenzl merged commit c9f0953 into oracle-samples:main Nov 29, 2023
@radovanradic radovanradic deleted the mn-jsonview-sample-update branch November 15, 2024 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Required At least one contributor does not have an approved Oracle Contributor Agreement.

2 participants