show
hide
Java Hibernate Tutorial Part 4

Now since we all have started with the flow of the hibernate framework and how it works we will be going and digging further.


In this tutorial I will be explaining you how to connect or map tables where we have table per subclass


So in this class we have


Student Table
ID
NAME

Student Address Table
ID (foreign key to ID in student table)
ADDRESS

Some map student table with Student class and we have a student address subclass of student class


So we can insert data in these both table using Student Address table by using the subclass object and also we can insert data in the Student table using student class object.


We use the concept of in this tutorials the programming remains the same as we did in tutorial3 meaning that the main class is similar to the way we had in the 3rd tutorial.


Press Esc to close