Hi!
While using DataStax Java Driver I've faced a situation when I need to extend DaoBase class. It is the ancestor for classes generated when the driver's object mapper is used.
Say, I define a mapper for my DAOs:
@Mapper public interface MyMapper { @DaoFactory MyOperator operator(@DaoKeyspace String keyspace, @DaoTable String entitiesTable); }
Then, I define the DAO itself:
@Dao public interface MyOperator { @Insert CompletableFuture<MyEntity> write(MyEntity ent); }
When the annotations processor generates the classes, I see the following one:
public class MyOperatorImpl__MapperGenerated extends DaoBase implements MyOperator { ... }
I would like MyOperatorImpl__MapperGenerated class to extend not DaoBase, but its child. This way I could override execute() method of DaoBase and add my code to it, for example, to log each query or to retry failed ones after a delay.
If there a way to achieve this? Couldn't find any options with annotations.