class OrderTypeConverter extends AbstractConverter<OrderType, OrderTypeResource> {

	@Override
	public OrderTypeResource convert(final OrderType source, final OrderTypeResource target) {
		
		target.setAbbrName(source.getAbbrName());
		target.setId(source.getId());
		target.setName(source.getName());
		
		if (source.getParent() != null) {
			target.setParentId(source.getParent().getId());
		}
		
		return target;
	}

}