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

Entity mapper do not work with extended classes #585

Open
evilezh opened this issue Jul 3, 2015 · 0 comments
Open

Entity mapper do not work with extended classes #585

evilezh opened this issue Jul 3, 2015 · 0 comments

Comments

@evilezh
Copy link

evilezh commented Jul 3, 2015

So ... I've superclass A with some pre-defined stuff and I've class B which extends and has few extra fields.
If I use class B - it can't find a table name, id fields and other ones defined in superclass.

some part of stack trace where id field is defined in superclass:
Exception in thread "main" java.lang.NullPointerException: there are no field with @id annotation
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:226)
at com.netflix.astyanax.entitystore.EntityMapper.(EntityMapper.java:125)
at com.netflix.astyanax.entitystore.DefaultEntityManager$Builder.build(DefaultEntityManager.java:179)
and
$ java -version
openjdk version "1.8.0_45"
OpenJDK Runtime Environment (build 1.8.0_45-b14)
OpenJDK 64-Bit Server VM (build 25.45-b02, mixed mode)

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

No branches or pull requests

1 participant