class DegreeQueryBuilder extends AbstractQueryBuilder<Degree> {

	@Override
	protected BaseQueryBuilder build(final Degree context, final BaseQueryBuilder builder) {
		return builder
				.where()
				.openBracket()
					.addAndCondition(PERSON_CONDITION, context.getPerson())
					.addAndCondition(DEGREE_CONDITION, context.getDegreeType())
				.closeBracket();
	}

}