Spring data JPA with Hibernate supports annotiation javax.persistence.Inheritance
and constants inside javax.persistence.InheritanceType
. Based on these, inheritance between entity classes is mapped into DB (single table/joined table https://stackoverflow.com/a/3579462/12053054).
I was not able to find any similar mechanism to support entity inheritance with spring data r2dbc. I know that JPA and Hibernate stuff has nothing to do with r2dbc, but i don't see any problem with supporting inheritance in spring data r2dbc repositories nor any "anti-pattern" against functional programming.
Is there any workaround for this or any mechanism that would let me to use inheritance in spring data r2dbc repositories ? (not just inheriting fields, but also translating inheritance to DB same as JPA/Hibernate does when calling spring data JPA repository methods). My only temporary workaround for this is to manually execute queries and implement spring data r2dbc repository methods on my own so i can translate inheritance into DB as well.