A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
Object Relational Mapping
Inheritence in JPA
Joined: Oct 19, 2006
Sep 27, 2011 06:19:58
Q1) I am confused with names? By how many names each one reffered?
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
Table per Subclass or Joined Inheritance
parent child relationship is established
No null able column
able 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
Joined: Oct 01, 2007
Sep 28, 2011 07:04:20
Sounds about right.
For #3, no data is duplicated, only columns. Each instance is only stored in one of the tables.
Blog:Java Persistence Performance
I agree. Here's the link:
subject: Inheritence in JPA
How To? Inheritance in Hibernate !
Help with a Mapping
polymormsim related demos
Best inheritance mapping strategy..
Misleading Inheritance Model names - Java Beat questions
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014