class EnrolmentSubjectConverter extends AbstractConverter<EnrolmentSubject, EnrolmentSubjectResource> {

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

}