Additional datasource on loader

Hi,

can we set the same for datamanager and Dl or DC

Created one entity if i create a screen for that i want to run the same on additional database and if i want to use on some other screen or service i want with run the primary datasource.

i tried for below code it seem to be working but how to do this for Dl or Dc

 @PersistenceContext(unitName = "slaveadditional") // store name
    @Autowired
    private DataManager dataManager;


@Transactional("slaveadditionalTransactionManager")
    public void loadData()
    {
                    collectionsesDl.setQuery("select e from user e");
                    collectionsesDl.setSort(Sort.by(Sort.Direction.DESC,"id"));
                    collectionsesDl.load();

}

Please see my reply here: How to run below UIRunner code on additional datasource - #6 by krivopustov

In Jmix, each entity belongs to a single data store (main by default).
So when you load an entity using DataManager (which is used also by loader in view XML), it requests the data store of the entity. No other indication is needed, the entity is stored in the well known data store.