| Total Complexity | 1 |
| Total Lines | 7 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | package easytests.api.v1.mappers; |
||
| 11 | @Service("TopicsMapperV1") |
||
| 12 | public class TopicsMapper extends ModelMapper { |
||
| 13 | public TopicsMapper() { |
||
| 14 | super(); |
||
| 15 | this.createTypeMap(TopicModel.class, Topic.class) |
||
| 16 | .addMappings(mapper -> mapper.<Integer>map(topicModel -> topicModel.getSubject().getId(), |
||
| 17 | (topic, id) -> topic.getSubject().setId(id))); |
||
| 18 | } |
||
| 20 |