Commit bae43297 authored by Noel Alonso's avatar Noel Alonso
Browse files

Añade mapeo de propiedad a partir de parent

De esta forma se puede hacer persistente el modelo con la herencia
parent af6cd9ff
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -127,6 +127,12 @@ public class LayerESMapper extends CustomMapper<Layer, LayerDTO> {
			a.setAttribution(mapperFacade.map(b.getAttribution(), Attribution.class));
		}

		if (b.getParent() != null && b.getParent().getId() != null) {
			a.getJoinIndex().setParent(b.getParent().getId());
		} else {
			a.setJoinIndex(null);
		}

		super.mapBtoA(b, a, context);
	}
}