A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
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
subject: Inheritence in JPA
How To? Inheritance in Hibernate !
polymormsim related demos
Best inheritance mapping strategy..
Misleading Inheritance Model names - Java Beat questions
Help with a Mapping
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014