Learn how to create a simple example using the Eclipse IDE and Hibernate Tools plug-in. HSQLDB is used for persisting data in the back-end.
In this tutorial you will learn how to do many-to-many mapping in hibernate.
Learn how to create a simple example using the Hibernate Annotations.
List of all Hibernate Examples.
In this example we have two classes Course and Student. The Course class contains details regarding the courses and the Student class contains details regarding the students. The two classes are assocaited in the following way, each student can participate in any number of courses and each course can have any number of students in it. This association is called a many-to-many association and to map this assoication in hibernate we use many-to-many mapping.