Nooul / spring-boot-rest-api-helpers

Java Spring REST API helpers for quick query building through JSON inspired by react-admin and offering an alternative to RSQL / FIQL
MIT License
36 stars 21 forks source link

Skip getting the name if you already have the `Class` #3

Closed jazcarate closed 5 years ago

jazcarate commented 5 years ago

I was getting a weird error where I was getting a

Not a managed type: class ...

when getIdAttribute. the Metamodel had my Entity, and the rootFullClass was indeed on the Metamodel map; but when it got the Class doing .getName() and Class.forName it had a different instance of the Class that did not match the Metamodel map.

zifnab87 commented 5 years ago

Thank you! was it because you were using inherited classes ? I haven't written any tests against entity inheritance. I would like to have a failing test that now passes if you can provide it by using or creating new entity classes in the tests