I am using datastax cassandra mapper and accessor to read/write data to cassandra.
<dependency>
<groupId>com.datastax.cassandra</groupId>
<artifactId>cassandra-driver-mapping</artifactId>
<version>2.1.5</version>
</dependency>
I have entities which has common fields which I have put in Super class. But the problem is datastax AnnotationParser just do entityClass.getDeclaredFields() and does not take care of superclass fields. Hence when I read a record from DB, the returned entity does not have all the fields populated.
Is there any fix or workaround available for this? Last option is to get rid of super class and add fields to individual entity class. But I don't want to do that as it's against OOPS concepts and gonna make code non maintainable.
Appreciate any help. Thanks.