Mismatch |
Description |
Granularity |
Sometimes you
will have an object model which has more classes than the number of
corresponding tables in the database. |
Inheritance |
RDBMSs do not
define anything similar to Inheritance which is a natural paradigm in
object-oriented programming languages. |
Identity |
A RDBMS defines
exactly one notion of 'sameness': the primary key. Java, however,
defines both object identity (a==b) and object equality (a.equals(b)). |
Associations |
Object-oriented
languages represent associations using object references where as am RDBMS
represents an association as a foreign key column. |
Navigation |
The ways you
access objects in Java and in a RDBMS are fundamentally different. |