01: package simpleorm.examples;
02:
03: import simpleorm.core.*;
04:
05: /** This test class defines the Project table. It has an Identifying
06: relataionship with Department, ie. Department forms part of its
07: key. */
08: public class Project extends SRecordInstance {
09:
10: public static final SRecordMeta meta = new SRecordMeta(
11: Project.class, "XX_PROJECT");
12:
13: static final SFieldReference DEPARTMENT = new SFieldReference(meta,
14: Department.meta, (String) null, SCon.SFD_PRIMARY_KEY);
15:
16: public static final SFieldString PROJECT_ID = new SFieldString(
17: meta, "PROJECT_ID", 10, SCon.SFD_PRIMARY_KEY);
18:
19: public static final SFieldString NAME = new SFieldString(meta,
20: "NAME", 40, SCon.SFD_DESCRIPTIVE);
21:
22: public static final SFieldDouble BUDGET = new SFieldDouble(meta,
23: "BUDGET");
24:
25: public SRecordMeta getMeta() {
26: return meta;
27: }; // specializes abstract method
28: }
|