66import org .globsframework .core .metamodel .annotations .GlobCreateFromAnnotation ;
77import org .globsframework .core .metamodel .annotations .InitUniqueKey ;
88import org .globsframework .core .metamodel .fields .BooleanField ;
9+ import org .globsframework .core .model .Glob ;
910import org .globsframework .core .model .Key ;
1011import org .globsframework .core .model .KeyBuilder ;
1112import org .globsframework .core .model .MutableGlob ;
@@ -15,19 +16,29 @@ public class DbIsNullable {
1516
1617 public static final BooleanField IS_NULLABLE ;
1718
19+ public static Glob nullable () {
20+ return nullable ;
21+ }
22+
23+ public static Glob notNullable () {
24+ return notNullable ;
25+ }
26+
1827 @ InitUniqueKey
1928 public static final Key KEY ;
2029
30+ public static final Glob nullable ;
31+
32+ public static final Glob notNullable ;
33+
2134 static {
2235 GlobTypeBuilder typeBuilder = GlobTypeBuilderFactory .create ("DbIsNullable" );
23- TYPE = typeBuilder .unCompleteType ();
2436 IS_NULLABLE = typeBuilder .declareBooleanField ("isNullable" );
25- typeBuilder .complete ();
2637 typeBuilder .register (GlobCreateFromAnnotation .class , annotation -> create (true ));
38+ TYPE = typeBuilder .build ();
2739 KEY = KeyBuilder .newEmptyKey (TYPE );
28- // GlobTypeLoaderFactory.create(DbIsNullable.class, "DbIsNullable")
29- // .register(GlobCreateFromAnnotation.class, annotation -> create(true))
30- // .load();
40+ nullable = create (true );
41+ notNullable = create (false );
3142 }
3243
3344 public static MutableGlob create (boolean isNullable ) {
0 commit comments