Hibernate version:
3.1 (ejb 3)
Name and version of the database you are using:
MYSQL
Hi All,
My question is: I have association mapping of one to many
i.e - teacher (one) and students (many)
the teacher has collection of her students
and the student keep refrerence to its parent (his teacher)
Code:
public class Student {
private int id;
private transient Teacher device;
...
}
now, my question is how can I have a member/method which will return the teachID in the student class in the GUI side?.
(I need it because when my system is client-server and I marked the parent as transient in the student class because I don't want the the serialized process will bring each time all the object graph but still I want to know the teacher ID of a specific student in the client side).