protected LFCourse toUnwrappedModel(LFCourse lfCourse) {
if (lfCourse instanceof LFCourseImpl) {
return lfCourse;
}
LFCourseImpl lfCourseImpl = new LFCourseImpl();
lfCourseImpl.setNew(lfCourse.isNew());
lfCourseImpl.setPrimaryKey(lfCourse.getPrimaryKey());
lfCourseImpl.setId(lfCourse.getId());
lfCourseImpl.setCourseID(lfCourse.getCourseID());
lfCourseImpl.setUserID(lfCourse.getUserID());
lfCourseImpl.setGrade(lfCourse.getGrade());
lfCourseImpl.setComment(lfCourse.getComment());
lfCourseImpl.setDate(lfCourse.getDate());
return lfCourseImpl;
}