class EnrolmentTypeConverter extends AbstractConverter<EnrolmentType, EnrolmentTypeResource> {

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

		return target;
	}

}