public List<LFRequiredActivity> findByAchievementId(Integer achievementId) throws SystemException {
return lfRequiredActivityPersistence.findByAchievementId(achievementId);
}
public LFRequiredActivity createLFRequiredActivity(Integer achievementId, String activityClassName, Integer numberActivitiesRequired) throws SystemException {
LFRequiredActivity result = createLFRequiredActivity(counterLocalService.increment(LFRequiredActivity.class.getName()));
result.setAchievementId(achievementId);
result.setActivityClassName(activityClassName);
result.setNumberActivitiesRequired(numberActivitiesRequired);
lfRequiredActivityPersistence.update(result, false);
return result;
}