From 0a501c549606893f90ee9787a13a8a8de1017355 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Fri, 2 Apr 2004 15:40:09 +0000 Subject: [PATCH] Material about the beer database application. git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@112 48953598-375a-da11-a14b-00016c27c3ee --- doc/About.pod | 147 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 147 insertions(+) diff --git a/doc/About.pod b/doc/About.pod index 60c3ab7..87ef195 100644 --- a/doc/About.pod +++ b/doc/About.pod @@ -5,8 +5,155 @@ =head2 What is Maypole? +=head2 The Beer Database example + +Throughout this manual, we're going to be referring back to a particular +application so that we can give concrete examples for the concepts we're +talking about. We could say "C returns a list of +accessors which can be called to return a list of objects in a has-a +relationship to the original", or we could say "if we call +C on while viewing C, it returns C, +because we can call C on a C object to get a list of +that berwery's beers." + +Because Maypole is all about beer. If you look carefully, you can +probably see men playing cricket on the village green. The first +ever Maypole application was written to help me keep track of the many +different ales available in my area - their styles, their tastes, their +breweries, prices and so on. Then the more I thought about it, the more +I thought it was a particularly good data model for demonstrating +different kinds of database relationships. + +We have a C table, which has several Cs. We'll call this +a has-many relationship. The beers each have a C