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

Is @MappedSuperClass supported? #59

Open
wilsondy opened this issue Jun 10, 2015 · 4 comments
Open

Is @MappedSuperClass supported? #59

wilsondy opened this issue Jun 10, 2015 · 4 comments
Assignees
Labels

Comments

@wilsondy
Copy link

I tried it and it doesn't appear to work? Was hoping to create a superclass that i have common fields in with several subclasses.

@valchkou
Copy link
Owner

Hi, jpa annotation @MappedSuperclass is not supported..
But you can have a SuperClass with mapping annotations and extend your Entity from it.

@valchkou valchkou self-assigned this Jun 15, 2015
@wilsondy
Copy link
Author

hmmm, it appears EntityTypeParser.parsePropoertyLevelMetadata is using Class.getDeclaredFields which would not surface properties in the parent class under any circumstances.

What is your appetite is for PRs?

@valchkou
Copy link
Owner

Let me check if I can do something simple to enable it. I will respond shortly

@modikartik
Copy link

Hi, I used this library and it solved lots of my issues. Great work and very useful.

I also faced the same issue of super class so I vote in for that :-)

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

No branches or pull requests

3 participants