01: package simpleorm.simplewebapp.eg.dbute;
02:
03: import simpleorm.core.SFieldString;
04:
05: /**
06: * Adds an extra field to WUser table.
07: */
08: public class WUserCustomize {
09: public static final SFieldString CUSTOM_STATIC = new SFieldString(
10: WUser.meta, "customStatic", 20);
11:
12: static String[] customFields = new String[] { "customDynamic" }; // Could be read from property file
13:
14: static {
15: WUserCustomize.makeCustomFields();
16: } // only do once.
17:
18: private static void makeCustomFields() {
19: for (String cf : customFields)
20: new SFieldString(WUser.meta, cf, 20);
21: }
22:
23: static void dummyLoadClass() {
24: } // required to load class.
25: }
|