hastebrot
05/10/2016, 7:38 PMDatabaseSource source = new DatabaseSource(this, Models.DEFAULT, 1);
if (BuildConfig.DEBUG) {
// use this in development mode to drop and recreate the tables on every upgrade
source.setTableCreationMode(TableCreationMode.DROP_CREATE);
}
Configuration configuration = source.getConfiguration();
dataStore = RxSupport.toReactiveStore(
new EntityDataStore<Persistable>(configuration));
This looks very cool. I normally use Ebean , and the database setup is a bit cumbersome.