Do not try to map HAL attributes

This commit is contained in:
Philipp Czora
2018-06-26 17:26:40 +02:00
parent df5012db56
commit 7b64d0aa58

View File

@@ -1,6 +1,7 @@
package sonia.scm.api.v2.resources;
import de.otto.edison.hal.HalRepresentation;
import org.mapstruct.Mapping;
import sonia.scm.ModelObject;
import sonia.scm.util.AssertUtil;
@@ -9,6 +10,8 @@ import java.util.Optional;
abstract class BaseMapper<T extends ModelObject, D extends HalRepresentation> {
@Mapping(target = "attributes", ignore = true) // We do not map HAL attributes
public abstract D map(T user);
Instant mapTime(Long epochMilli) {