I make the DAO layer, there are classes Student, Teacher, Audience, Group and Lecture. The Group class contains a sheet of Student objects, and the Lecture class contains all of these classes, and the group contains a List field.

public class Lecture { private String lectureName; private Audience audience; private Teacher teacher; private List<Group> groups; private Date date; } 

If in the DAO layer the processing of the classes Teacher, Student, Audience did without problems, then how to make the DAO class for Lecture, how to handle the group field? PS in the Lecture class can contain one or several groups.

  • So what's the question then? What prevents to handle the "field groups" as well as Teacher, Student, Audience? - ezhov_da
  • I understand to handle using multiple statements in a single transaction? - lutsik
  • Do you do DAO for Lecture? If yes, then in one transaction. - ezhov_da

0