Show and Theater Properties
You have probably seen enough of Caché class definitions already so that you know how to create classes and properties without step-by-step instructions. So, create Cinema.ShowOpens in a new tab and Cinema.TheaterOpens in a new tab according to the following specifications.
Class | Class type | Property | Data Type |
---|---|---|---|
Cinema.ShowOpens in a new tab | Persistent | Film | Cinema.FilmOpens in a new tab |
StartTime | %TimeOpens in a new tab(FORMAT=2) | ||
Theater | Cinema.TheaterOpens in a new tab | ||
Cinema.TheaterOpens in a new tab | Persistent | AdultPrice | %FloatOpens in a new tab(SCALE=2,MINVAL=0) |
ChildPrice | %FloatOpens in a new tab(SCALE=2,MINVAL=0) | ||
TheaterName | %StringOpens in a new tab |
We'll then proceed to adding the ShowTimes query that we will use for our Web page.