Skip to content

Bonus commands#65

Open
miko44quliyev wants to merge 27 commits intoironhack-labs:mainfrom
BillerPlay:bonus-commands
Open

Bonus commands#65
miko44quliyev wants to merge 27 commits intoironhack-labs:mainfrom
BillerPlay:bonus-commands

Conversation

@miko44quliyev
Copy link
Copy Markdown

No description provided.

this.teacherService = teacherService;
}
private Map<String, Course> courses = new HashMap<>();
private final TeacherService teacherService;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You are declaring teacherService two times: one private the other public. What was the objective?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I removed the duplicate teacherService declaration; the error is fixed. Thanks!

@Service
public class StudentService {
public final CourseService courseService;
public StudentService(CourseService courseService){
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why is courseService here if you are not using it in the StudentService?

@ahpoise
Copy link
Copy Markdown

ahpoise commented Mar 12, 2026

I see that you have custom exceptions, why not implement a @ControllerAdvice or a @@RestControllerAdvice?

Why didn't you cover put and patch in the controllers? And wh also no validation using @Valid?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants