Managing Many-to-Many Relationships with PL/pgSQL (O'ReillyNet)
[Posted June 30, 2006 by ris]
David E. Wheeler
looks
at PL/pgSQL in this O'ReillyNet article. "
A common pattern when
managing the relationship between object-oriented applications and
databases is the many-to-many relationship. Object-relational mappers
usually manage these relationships as collections of objects, wherein one
class has an accessor that returns a collection of related objects. For
example, imagine that you're creating (yet another) blogging
application. You want to associate your blog entries with tags. Tags can be
used over and over again for different blog entries, and each blog entry
can, of course, have more than one tag. In this scenario, the blog entry
class might have a method that returns a collection of tag
objects."
(
Log in to post comments)