use of eu.europa.ec.fisheries.schema.exchange.v1.UnsentMessageType in project UVMS-ExchangeModule-APP by UnionVMS.
the class UnsentMessageMapper method mapToUnsentMessagePropertyEntities.
private static List<UnsentMessageProperty> mapToUnsentMessagePropertyEntities(UnsentMessageType message, UnsentMessage entity) {
List<UnsentMessageTypeProperty> properties = message.getProperties();
List<UnsentMessageProperty> unsentMessageProperties = new ArrayList<>();
for (UnsentMessageTypeProperty property : properties) {
UnsentMessageProperty unsentMessageProperty = new UnsentMessageProperty();
unsentMessageProperty.setKey(property.getKey());
unsentMessageProperty.setValue(property.getValue());
unsentMessageProperty.setUnsentMessage(entity);
unsentMessageProperties.add(unsentMessageProperty);
}
return unsentMessageProperties;
}
Aggregations