public void onCreate() {
   Lectures l = new Lectures();
   l.setCourse(course);
   l.setDate(date);
   l.setStart(startTime);
   l.setStop(stopTime);
   lEJB.upsert(l);
 }
 public Lectures getLectureById(int id) {
   Lectures lecture = new Lectures();
   lecture.setId(id);
   Lectures l = lEJB.readOne(lecture);
   return l;
 }
 public List<Students> getStudentList() {
   Lectures lecture = new Lectures();
   lecture.setId(id);
   Lectures l = lEJB.readOne(lecture);
   return l.getStudentsList();
 }