class MarkScaleConverter extends AbstractConverter<MarkScale, MarkScaleResource> {

	@Override
	public MarkScaleResource convert(final MarkScale source, final MarkScaleResource target) {
		
		if (source.getMarkScaleType() != null) {
			target.setMarkScaleTypeId(source.getMarkScaleType().getId());
		}
		
		target.setAbbrName(source.getAbbrName());
		target.setName(source.getName());
		target.setMarkMin(source.getMarkMin());
		target.setMarkMax(source.getMarkMax());
		target.setId(source.getId());
		
		return target;
	}

}