Open knstvk opened 2 years ago
@knstvk hi!
This looks like an incorrect behavior of MetaModelLoader. It sets UNDEFINED data store for cross data store references (as they don't have any JPA annotation except Transient). As a result CrossDataStoreReferenceLoader always loads references by ids collection instead of a query:
Btw shouldn't it ignore soft deletion like it happens for references from the same data store? Looks inconsistent atm.
Now it throws
io.jmix.core.EntityAccessException: Unable to load entity access denied or deleted.
See forum topic for more detail.