cannot find symbol

Answered

0
3 comments

Where is the screenshot of section class?

0
Avatar
Permanently deleted user
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(of = {"sectionID"})
public class Section {
private static final long serialVersionUID = 1L;
@ManyToOne(fetch = FetchType.LAZY,
cascade = {PERSIST, MERGE,
CascadeType.REFRESH, DETACH})
@JoinColumn(name = "course_id")
@JsonIgnoreProperties("sectionList")
private Course course;
private String faculty;
private int section_number;
private int capacity;
private int semester_id;
@Id
private String sectionID;

@ManyToMany(fetch = FetchType.LAZY,
cascade = {CascadeType.PERSIST, CascadeType.MERGE,
CascadeType.DETACH, CascadeType.REFRESH})
@JoinTable(
name = "section_student",
joinColumns = @JoinColumn(name = "section_id"),
inverseJoinColumns = @JoinColumn(name = "student_id")
)
@JsonIgnoreProperties("sections")
private List<StudentInfo> studentInfos;
public void addStudent(StudentInfo tempStudentInfo) {
if (studentInfos == null) {
studentInfos = new ArrayList<>();
}
studentInfos.add(tempStudentInfo);

}

}
0

Make sure you have Lombok plug-in installed, Lombok dependency present and annotation processing enabled.

0

Please sign in to leave a comment.