astyanax
astyanax copied to clipboard
Entity mapper do not work with extended classes
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.