Comments on: Ports and Adapters Java Tutorial: Adding a Database Adapter https://www.happycoders.eu/software-craftsmanship/ports-and-adapters-java-tutorial-db/ Fri, 29 Nov 2024 10:57:32 +0000 hourly 1 By: Sven Woltmann https://www.happycoders.eu/software-craftsmanship/ports-and-adapters-java-tutorial-db/#comment-29972 Mon, 17 Jun 2024 11:38:12 +0000 https://www.happycoders.eu/?p=37749#comment-29972 In reply to Nitesh Gupta.

Hi, could you please clarify your question. I don't understand what exactly your question is.

]]>
By: Sven Woltmann https://www.happycoders.eu/software-craftsmanship/ports-and-adapters-java-tutorial-db/#comment-29971 Mon, 17 Jun 2024 11:37:39 +0000 https://www.happycoders.eu/?p=37749#comment-29971 In reply to Nimal.

Hi Nimal, no the mapping belongs into the adapter where the DTO and JPA entities are defined. The application doesn't know anything about those entities, so it cannot map to/from them.

]]>
By: Nitesh Gupta https://www.happycoders.eu/software-craftsmanship/ports-and-adapters-java-tutorial-db/#comment-29405 Mon, 10 Jun 2024 13:04:47 +0000 https://www.happycoders.eu/?p=37749#comment-29405 I just want to know, If adapters need to be outside of application service. How can it be achieved.

]]>
By: Nimal https://www.happycoders.eu/software-craftsmanship/ports-and-adapters-java-tutorial-db/#comment-26514 Fri, 03 May 2024 12:59:02 +0000 https://www.happycoders.eu/?p=37749#comment-26514 Thank you for the great article. I am now following clean architecture.
In my opinion the mapping logic also in the application layer not in the repository adapter so that our application is more clean. What is your opinion?

]]>