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

Support JPA MapKeyClass #70

Closed
andyjefferson opened this Issue Feb 22, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@andyjefferson
Member

andyjefferson commented Feb 22, 2017

Moved from core-185.

Currently the code in org.datanucleus.store.types.containers.MapHandler:156 defaults to java.lang.Object if no key type can be inferred when checking generics. This should honor the class defined via MapKeyClass otherwise it infers the wrong type when using raw types and fails to boot.

@andyjefferson

This comment has been minimized.

Show comment
Hide comment
@andyjefferson

andyjefferson Feb 22, 2017

Member

Minority interest since 99% of people would just use generics, but for those that don't, this needs a handler in JPAAnnotationReader and set the MapMetaData "key" container component "type".

Member

andyjefferson commented Feb 22, 2017

Minority interest since 99% of people would just use generics, but for those that don't, this needs a handler in JPAAnnotationReader and set the MapMetaData "key" container component "type".

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