Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Column does not support super class inheritance #367

Closed
KDawgOne opened this issue Aug 22, 2017 · 1 comment
Closed

@Column does not support super class inheritance #367

KDawgOne opened this issue Aug 22, 2017 · 1 comment

Comments

@KDawgOne
Copy link

KDawgOne commented Aug 22, 2017

When I use the above annotation on a super class on an field that is to be inherited by another class, the annotation is not inherited to the child class as expected. This forces a re-declaration of the column in the inheriting class.

@fmachado
Copy link
Contributor

A possible solution for this issue is calling getSuperClass (recursively?) when we are caching the fields

for (Field field : clazz.getDeclaredFields()) {
and would be a good improvement to the result mapper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants