my class
public class Teacher
has ManyToMany relationship with Students :
public class Student
when i return teachers i want only their student ids , instead of full information about their students.
we have two Dtos (DataTransferObject) : StudentDto and TeacherDto with some variables.
what can i do to solve this problem?
I want Students as well to return only names or ids of Teachers. instead they return full dto list of teachers.
thanks.