View on GitHub

qc-atlas

Platform for Sharing Quantum Software

Use a Model Mapper to convert entities to DTOs and vice versa

Context and Problem Statement

Due to the use of two different object types for transfering and storing data, the conversion between the types becomes a necessity. Therefore we need means to perform the respective conversion.

Considered Options

Decision Outcome

Chosen option: “Model Mapper”, because it fulfils our requirements, is highly configurable and less error prone then manually written converters.

Positive Consequences

Pros and Cons of the Alternatives

Manually written conversion methods

Model Mapper

MapStruct