Polymorphic association

From HandWiki
Revision as of 01:27, 14 June 2021 by imported>NBrush (add)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Polymorphic association is a term used in discussions of Object-Relational Mapping with respect to the problem of representing in the relational database domain, a relationship from one class to multiple classes. In statically typed languages such as Java these multiple classes are subclasses of the same superclass. In languages with duck typing, such as Ruby, this is not necessarily the case.

See also

  • Polymorphism in object-oriented programming
  • Hibernate (Java)

References

Java Persistence with HIBERNATE, Chapter 5, Bauer, Christian & Gavin, King, Manning, copyright 2007, ISBN:1-932394-88-5

External links