About 50 results
Open links in new tab
  1. 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 …

  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. Should I mock ObjectMapper in my unit tests?

    Sep 29, 2020 · JSON is like a peripheral to your application, ObjectMapper should only be present at boundaries of your system. You can test these boundaries (without mocking ObjectMapper) by …

  4. 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 …

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

  6. 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 …

  7. How to map same name entities between domains in DDD?

    Mar 21, 2025 · My best guess for this would be a mapper from one domain's entity to an entity in another domain, but I don't know where I'd place this mapper. I don't if I made myself clear, but if you …

  8. object oriented design - Software Engineering Stack Exchange

    If entities would you map those to DTOs using a mapper in the controller? What about behaviour? Is that ok in a service class, or should entities be mapped to DAOs that contain behaviour? I’m confused, …

  9. 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 …

  10. Repository Pattern: Doctrine2 vs Microsoft Entity Framework?

    Entity Framework is not the implementation of Repository Pattern. EF is the Object Relational Mapper. Yes, it looks and behaves like Repository Pattern with Save/Update functionality. Your IManager …