Hi,
What fetch plan does jmix repository use by default? Is it _base?
If yes, is there a way for me to specify a custom fetch-plan on a default method, like save()
?
In the following example, productMapper.toDto() tries to access unfetched attributes of Product entity.
Product product = productRequestMapper.create(request);
Product savedProduct = productRepository.save(product);
return productMapper.toDto(savedProduct);
productRepository.save()
returns the Object with some fields not fetched.
If there is no way to pass fetchplan to save() method, how can I load other properties of a partially loaded entity?