示例#1
0
  public static void open() {
    Database.open();
    settings = load(Settings.class, new Settings());
    users = load(Users.class, new Users());

    settings.counter++;
    logger.info("counter: " + settings.counter);
  }
示例#2
0
 public static void commit() {
   settings.pinList = GpioService.getPinList();
   save(Settings.class, settings);
   Database.commit();
 }