public void addEngine(NotificationEngine engine) { try (BergamotDB db = BergamotDB.connect()) { engine.setNotificationsId(this.getId()); db.setNotificationEngine(engine); } }
public void addEngine(NotificationEngine engine) { try (BergamotDB db = BergamotDB.connect()) { engine.setNotificationsId(this.getId()); db.setNotificationEngine(engine); } }