agrestio / agrest

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

Can't use inherited relationships in includes #590

Closed andrus closed 1 year ago

andrus commented 1 year ago

When doing a GET on a superclass in an inheritance hierarchy, Agrest allows to include attributes from any subclass, but when including a relationship, an exception is thrown:

i.a.j.p.JaxrsAgExceptionMapper: 500 Internal Server Error (Exception processing Agrest request) 
[cause: No such relationship: BaseEntity.relName]

This happens under very specific condition: