DatabaseConfig config = new DatabaseConfig();
config.setName("db");
config.setCurrentUserProvider(currentUser);
// // set the spring's datasource and transaction manager.
config.setDataSource(dataSource);
config.setExternalTransactionManager(new SpringJdbcTransactionManager());
config.loadFromProperties();
config.add(uuidGenerator);
// set as default and register so that Model can be
// used if desired for save() and update() etc
config.setDefaultServer(true);
config.setRegister(true);
config.setTenantMode(TenantMode.PARTITION);
config.setTenantPartitionColumn("TENANT_ID");
config.setCurrentTenantProvider(tenantProvider);
config.setTenantDataSourceProvider(tenantId -> dataSource);
return config;
GITHUB ISSUES ARE STRICTLY CONTROLLED FOR THIS PROJECT.
Refer to http://ebean-orm.github.io/support for the policies controlling the use of github issues. Please post issues to the Ebean group https://groups.google.com/forum/#!forum/ebean first.
Expected behavior
Actual behavior
Steps to reproduce