private void setId(final Contract obj, final int index) {
obj.setId(Long.valueOf(index));
}
public void setApprentice(final Contract obj, final int index) {
final Apprentice apprentice = apprenticeExample.getRandomApprentice();
obj.setApprenticeId(apprentice.getId());
}