use of io.crnk.jpa.model.dto.TestDTO in project crnk-framework by crnk-project.
the class TestDTOMapper method map.
@Override
public TestDTO map(Tuple tuple) {
TestDTO dto = new TestDTO();
TestEntity entity = tuple.get(0, TestEntity.class);
dto.setId(entity.getId());
dto.setStringValue(entity.getStringValue());
dto.setComputedUpperStringValue(tuple.get("computedUpperStringValue", String.class));
dto.setComputedNumberOfSmallerIds(tuple.get("computedNumberOfSmallerIds", Long.class));
return dto;
}
Aggregations