id, name, subject, department.
id(Column=id), name(column=name), subject(column=subject), List<Employee> (Mapping to department which returns list of employees from that department)
when i get the employee details based on the subject, it shud return the id, name, subject and list of other employees in that department.
We are using annotations. Can somebody help me with the mapping that needs to be given for the List<Employee> which is mapping to department.
Is it possible this way to return a list of the same objects?