agrestio / agrest

Server-side Java REST Framework for easy access to data graphs from various backends
https://agrest.io
Apache License 2.0
82 stars 34 forks source link

AgEntityOverly with a single root resolver doesn't update the entity #513

Closed andrus closed 2 years ago

andrus commented 2 years ago

An overlay like this is treated as if it is "empty", and does not apply the data resolver to the underlying entity:

return Ag
    .select(E1.class, config)
    .entityOverlay(AgEntity.overlay(E1.class).redefineRootDataResolver(new E1Resolver()))
    .get();