Skip to content

84 facade migration t3 major#130

Open
DjesikaV wants to merge 7 commits into
mainfrom
84-Facade-Migration-T3-major
Open

84 facade migration t3 major#130
DjesikaV wants to merge 7 commits into
mainfrom
84-Facade-Migration-T3-major

Conversation

@DjesikaV

Copy link
Copy Markdown
Contributor

Changes:

  • Added MajorWebFacade
  • Added MajorValidator
  • Updated MajorController to inject only the facade
  • Refactored MajorService use only the repository
  • Removed @transactional from MajorService
  • Updated MajorMapper to map request and response Dtos directly
  • Removed validation annotations from MajorResponseDto
  • Added validation messages in MajorRequestDto
  • Updated MajorServiceTest
  • Added MajorWebFacadeTest
  • Added MajorValidatorTest

@DjesikaV
DjesikaV requested a review from a team as a code owner July 16, 2026 11:27
Comment on lines +17 to +23

public void validateForCreate(final MajorRequestDto requestDto) {
validateFacultyExists(requestDto.facultyId());
}

public void validateForUpdate(final MajorRequestDto requestDto) {
validateFacultyExists(requestDto.facultyId());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since the validation logic for creation and updating is currently identical, we could combine them into a single method. DRY principle.

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.

2 participants