01: package simpleorm.simplewebapp.eg.database;
02:
03: import simpleorm.simplewebapp.dbute.WGenericCrudPagelet;
04: import simpleorm.simplewebapp.eg.dbute.WUser;
05:
06: public class WUserAutoCrudPage extends WTestPage {
07:
08: public final WUserAutoCrudPagelet pagelet = new WUserAutoCrudPagelet(
09: this );
10:
11: public static class WUserAutoCrudPagelet extends
12: WGenericCrudPagelet {
13:
14: // Alternative: uncomment below, and comment out generateCrudFields() below.
15: // final WField userId = addGeneratedCrudField(WUser.USER_ID);
16: // final WField name = addGeneratedCrudField(WUser.NAME);
17: // final WField location = addGeneratedCrudField(WUser.LOCATION);
18:
19: public WUserAutoCrudPagelet(WUserAutoCrudPage page) {
20: super (page, WUser.meta); // What table to execute
21: generateCrudFields(); // Very Auto -- Generate the fields if not explicitly enumerated above.
22: }
23:
24: }
25: }
|