问题
What is a better approach for implementing converter from DTO to Entity? Using factory with static methods to convert or using instance Converter object?
回答1:
Finally I ended with instance Converter objects as they may be mocked, that is better for testing
来源:https://stackoverflow.com/questions/13176707/static-methods-to-transform-dto-to-entity