Works with native query now needst to be hql

This commit is contained in:
BuildTools
2020-11-22 03:51:24 +01:00
parent 9d3500c1fb
commit 0130fb77e1
6 changed files with 40 additions and 8 deletions

View File

@ -20,8 +20,9 @@ public class GroupsMappers {
return groups.stream().filter(Objects::nonNull).map(GroupWithCapacityResponse::new)
.collect(Collectors.toList());
}
public static CourseWithGroupsResponse<GroupDefaultResponse> mapToGetCourseGroupsDefaultResponse (List<Groups> groups){
public static CourseWithGroupsResponse<GroupDefaultResponse> mapToGetCourseGroupsDefaultResponse(
List<Groups> groups) {
List<GroupDefaultResponse> lectures = new ArrayList<>();
List<GroupDefaultResponse> classes = new ArrayList<>();
@ -34,11 +35,11 @@ public class GroupsMappers {
}
});
return new CourseWithGroupsResponse<>(classes, lectures);
}
public static CourseWithGroupsResponse<GroupWithCapacityResponse> mapToGetCourseGroupsWithCapacityResponse (List<Groups> groups){
public static CourseWithGroupsResponse<GroupWithCapacityResponse> mapToGetCourseGroupsWithCapacityResponse(
List<Groups> groups) {
List<GroupWithCapacityResponse> lectures = new ArrayList<>();
List<GroupWithCapacityResponse> classes = new ArrayList<>();
@ -51,7 +52,6 @@ public class GroupsMappers {
}
});
return new CourseWithGroupsResponse<>(classes, lectures);
}