About 73,100 results
Open links in new tab
  1. Is "Mapper" a valid design pattern or is it a variation of the "Factory ...

    The Mapper is essentially a constructor inside out. Suppose for a while, if you don't have a Mapper - when you need many seta of parameters they are all arguments on the constructor. Now as things …

  2. What does mapping mean in programming? - Software Engineering …

    The programming uses of the verb "map" and the noun "mapper" are largely unrelated to their common uses in English, so this is a very understandable question. The programming use is also very broad, …

  3. java - Should I mock ObjectMapper in my unit tests? - Software ...

    Sep 29, 2020 · It could be replaced with a custom mapper later. When testing the OP's methods I don't think that the call to the mapper matters, what I care about is that the result of the method is correct.

  4. How do Repository and Data Mapper patterns work together?

    Jun 28, 2023 · Data Mapper, presumably, has the standard "CRUD" interface, and nothing else. But this suggests a problem. How do you implement the query methods of the Repository? In particular, is …

  5. What design pattern / solution helps me elegantly map classes that ...

    Nov 4, 2022 · I'm looking for an elegant way (a design pattern if such exists, not a library) to map two classes that share the same base class, without duplicating the code that maps the properties of the …

  6. Separating Domain Object and Data Models

    Sep 25, 2018 · I looked through a lot of articles, blogs, and SO topics about separating domain object and data models. Almost every answer said: You should have separate classes for the domain and …

  7. What is the point of using DTO (Data Transfer Objects)?

    Oct 26, 2012 · What is the point of using DTO and is it an out dated concept? I use POJOs in the view layer to transfer and persist data. Can these POJOs be considered as an alternative to DTOs?

  8. design patterns - better structure of a software project to prevent ...

    Oct 31, 2023 · The controller uses a car mapper (Mapstruct) to create a car object from it and passes it to the CarService. However, the CarService cannot save the object immediately.

  9. object oriented - Mapping list to another list dynamically - Software ...

    Jul 19, 2023 · The CreateMap line can of course be replaced by whatever your mapper configuration is. You could perform this test for each mapping separately, or you could load up everything and see if …

  10. c# - Best approach to map user roles dynamically in ASP.NET Core ...

    Oct 11, 2024 · When using Entity Framework, the different user types (e.g., Student, Teacher) are mapped under the hood to a single table in the database with a discriminator column. This column …