Skip to content

Facade migration t1 migrate roomcategory to facade pattern#122

Open
DjesikaV wants to merge 8 commits into
mainfrom
Facade-migration—T1-Migrate-roomcategory-to-Facade-pattern

Hidden character warning

The head ref may contain hidden characters: "Facade-migration\u2014T1-Migrate-roomcategory-to-Facade-pattern"
Open

Facade migration t1 migrate roomcategory to facade pattern#122
DjesikaV wants to merge 8 commits into
mainfrom
Facade-migration—T1-Migrate-roomcategory-to-Facade-pattern

Conversation

@DjesikaV

@DjesikaV DjesikaV commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Changes:

  • Added RoomCategoryWebFacade
  • Added RoomCategoryValidator
  • Updated RoomCategoryController to use only the facade
  • Refactored RoomCategoryService to use only the repository
  • Moved @transactional from service to facade.
  • Updated RoomCategoryMapper to map request/response DTOs
  • Updated RoomCategoryServiceTest
  • Added RoomCategoryWebFacadeTest

@DjesikaV
DjesikaV requested a review from a team as a code owner June 29, 2026 15:18

@PIPetkova19 PIPetkova19 left a comment

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.

Add messages to dto validators

public record RoomCategoryResponseDto(

@NotNull
@NotNull(message = "Room ID cannot be null")

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.

I think the response dto shouldn't have validators

Manastirski
Manastirski previously approved these changes Jun 30, 2026
@DjesikaV DjesikaV changed the title Facade migration—t1 migrate roomcategory to facade pattern Facade migration t1 migrate roomcategory to facade pattern Jun 30, 2026
PIPetkova19
PIPetkova19 previously approved these changes Jun 30, 2026
s100ian
s100ian previously approved these changes Jun 30, 2026

@constantine0621 constantine0621 left a comment

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.

Make tests for Validator and Mapper

@DjesikaV
DjesikaV dismissed stale reviews from s100ian and PIPetkova19 via 03c6a74 July 1, 2026 08:31

@PIPetkova19 PIPetkova19 left a comment

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.

Naming convention for test method names is
->findById_shouldReturnEntity_whenFacultyExists;
Add tests for mapper

@DjesikaV DjesikaV self-assigned this Jul 16, 2026
@s100ian

s100ian commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

@DjesikaV please, respond to the comments.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants