I use this function to get ReactiveEntityStore in the application class
private static @NonNull ReactiveEntityStore<Persistable> getDataStore(@NonNull Context context) {
DatabaseSource source = new DatabaseSource(context, Models.DEFAULT, DATABASE_VERSION);
if (BuildConfig.DEBUG) {
source.setTableCreationMode(TableCreationMode.DROP_CREATE);
}
Configuration configuration = source.getConfiguration();
return ReactiveSupport.toReactiveStore(new EntityDataStore<Persistable>(configuration));
}
When I try to do a select
public List<PedidoEntity> getAllPedidos() {
List<PedidoEntity> pedidosEntity = mDataStore.select(PedidoEntity.class)
.get()
.toList();
return pedidosEntity;
}
of this error
Ambiguous method call.both
select (....) in Queryable and
select (....) in ReactiveQueryable match
Does anyone know how to solve it?