Working on a group project that is essentially a text-based Pokemon rip-off. My classmates and I were given a UML to work from so I can’t accept any solutions that would add methods or change their parameters. But essentially the issue we’re running into is this: There is a singleton PokemonGenerator class, that has a method generateRandomPokemon(int level) that picks
Tag: decorator
How to use decorated method in Mapstruct collection mapper?
I am using MapStruct to map from a JPA entity to a POJO DTO, in a Spring app with dependency injection. I have added some additional processing of the DTO to a method in a decorator as specified in the doc. It works fine for mapping a single entity. But I also have a mapping for a collection (set) of