Please can someone show me how to map these relationship. i tried out but i wasnt getting the results i expected
Code:
class Teacher {
Long id;
String name;
List<Students> students;
}
class Students {
Long id;
String name;
List<Teacher> teachers;
}
Thanks
Hibernate version: 3.1 Mapping documents:Code between sessionFactory.openSession() and session.close():Full stack trace of any exception that occurs:Name and version of the database you are using:The generated SQL (show_sql=true):Debug level Hibernate log excerpt:[/code]