It seems you didn't specify a discriminator explicitly for your widget hierarchy. I think you can try to define it explicitly because Spring Data will manipulate bytecode to generate the queries, and so I suspect SpringData need to have those values explicitely defined.
Additionally in subclasses you need to indicate the discriminator value for each subclass.
Read full article from java - Spring Data JPA(Hibernate): How do I retrieve a concrete entity using only a field in its abstract superclass? - Stack Overflow
No comments:
Post a Comment