amit535_97416 avatar image
amit535_97416 asked amit535_97416 commented

InventoryMapperBuilder class not available in the tarball installation for Datastax java driver spring boot starter?

The tarball which I downloaded from the datastax lab does not have InventoryMapperBuilder code.

10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

bettina.swynnerton avatar image
bettina.swynnerton answered amit535_97416 commented

Hi @amit535_97416,

the InventoryMapperBuilder class is generated code based on your annotations.

The java-driver-mapper-processor artifact contains the annotation processor. It hooks into the Java compiler, and generates additional source files from your annotated classes before the main compilation happens.

Have a look at the driver documentation here:


You would need to generate the class first.

Also a note re the lab release of the Datastax java driver spring boot starter. As far as I know it is no longer developed.

The recommendation is now to go with Spring Data Cassandra.

For an example using the Mapper, check out the Cassandra Workshop Series, week 4, Getting Started with Astra Java:

I hope this helps!

1 comment Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

amit535_97416 avatar image amit535_97416 commented ·

Thanks Bettina, I was using eclipse and running the program as Spring boot application, the class was not getting generated.

When I built using Maven it got generated.

As suggested above, I generally use spring data Cassandra,

but this time I have created a keyspace and table using AWS Keyspaces in AWS and was trying to connect programmatically, but it was failing to connect using the application.conf and the DriverConfigLoader when used with Spring data cassandra and I have no clue how to pass the DefaultSslEngineFactory using the* properties, hence wanted to explore the java-driver-spring-boot from datastax.

I'll look into the link for the mapper example (Astra Java).

0 Likes 0 ·