About 50 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. 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 …

  4. Should the DTO be able to parse itself from and to Domain?

    Sep 16, 2020 · I consider a Mapper as responsible from transcoding one representation to another. A DTO in my eyes is the pseudo model POD type that exists as a high level concept across both …

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

  6. Best practices regarding type mapping and extension methods

    Nov 3, 2015 · Converter/Mapper class. I create separate class that will handle conversions and implement methods that will take source class instance as an argument and return destination class …

  7. EF6 - how to keep track of what's changed when objects are mapped?

    Aug 3, 2017 · In a DB-first EF6 application, we have a data access layer which handles all the interaction with EF. The objects pulled from the context are EF-generated C# classes, these are then …

  8. c# - Onion architecture object mapping - Software Engineering Stack ...

    Dec 31, 2025 · I'm reading and playing a bit with Onion on a mock side project and things got a little desperate with all the objects and the mappings. Consider this Diagram of a request and the various …

  9. java - Best way to handle lazy models with mapstruct and spring ...

    Jan 5, 2021 · But here the problem, When mapper starts to convert Engine it will get LazyInitializationException since transaction was already committed and closed in service and …

  10. Static is bad, but what about the Factory pattern?

    So it's ok to have instances of Factory/Repository/Mapper ? I'll need a dependency container or something because if we need to inject all the factory/repository/mapper for all the possible object …