Skip to content

Enhancement/128 add facade layer to room - #133

Open
PIPetkova19 wants to merge 16 commits into
mainfrom
enhancement/128-add-facade-layer-to-room
Open

Enhancement/128 add facade layer to room#133
PIPetkova19 wants to merge 16 commits into
mainfrom
enhancement/128-add-facade-layer-to-room

Conversation

@PIPetkova19

@PIPetkova19 PIPetkova19 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Changes made:

  • Added a facade layer using the service and mapper.
  • Implemented the service based on the BaseService interface.
  • Added unit tests for the service, mapper, and facade.
  • Implemented custom query methods in CustomRoomRepository using the Criteria API.
  • Remove internal dto

@PIPetkova19 PIPetkova19 self-assigned this Jul 23, 2026
@PIPetkova19
PIPetkova19 requested a review from a team as a code owner July 23, 2026 07:59
Manastirski
Manastirski previously approved these changes Jul 24, 2026
private final RoomMapper roomMapper;
private final RoomService roomService;

private Room getRoomOrThrow(final UUID id) {

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.

Why this method is called getRoomOrThrow?
The idea of exception is that they happen unexpectedly there is no need to add that behavior in the method name.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I was following the same naming convention that's already used in the other files. We can open another pr to refactor the naming across all the files?

private Room entity;
private RoomResponseDto responseDto;
private UUID id;
private UUID categoryId;

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.

Please format the code.

@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.

RoomValidator missing

@DjesikaV DjesikaV 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.

missing RoomValidator

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