hibernate / hibernate-models

An abstraction over "reflection" and annotations
Apache License 2.0
2 stars 5 forks source link

Work on generics / parameterized-types #21

Closed sebersole closed 5 months ago

sebersole commented 5 months ago

Fully support for generics / parameterized-types

beikov commented 5 months ago

I think it would be best to make ClassDetails extends TypeDetails and let members expose TypeDetails instead of ClassDetails. Then you can mirror the respective ParameterizedType etc. in that hierarchy.

sebersole commented 5 months ago

I think it would be best to make ClassDetails extends TypeDetails and let members expose TypeDetails instead of ClassDetails. Then you can mirror the respective ParameterizedType etc. in that hierarchy.

Yep, that was my initial thought as well. Its one situation which Jandex and the JDK model differently. I went with the Jandex approach for the time being, which is to have completely separate hierarchies. So ClassDetails does not extend TypeDetails - instead there is a ClassTypeDetails which wraps a ClassDetails