| Author |
Inheritence in JPA
|
Satyajeet Kadam
Ranch Hand
Joined: Oct 19, 2006
Posts: 202
|
|
Q1) I am confused with names? By how many names each one reffered?
1) Table per class hierarchy or Single table or Single Table Inheritance // Are these names are correct?Do they mean the same thing?
Data is store in one table.
lot of null able columns
2) Table per Subclass or Joined Inheritance
parent child relationship is established
No null able column
3) Table per class or table per concrete class
Each class has its own table
Parent fields get duplicated in table
Data gets repeated again and again
|
 |
James Sutherland
Ranch Hand
Joined: Oct 01, 2007
Posts: 550
|
|
Sounds about right.
For #3, no data is duplicated, only columns. Each instance is only stored in one of the tables.
|
TopLink : EclipseLink : Book:Java Persistence : Blog:Java Persistence Performance
|
 |
 |
|
|
subject: Inheritence in JPA
|
|
|