Mapper

The mapper generates the boilerplate to execute queries and convert the results into application-level objects.

The DSE mapper is published as two artifacts that reflect their OSS counterparts:

  • dse-java-driver-mapper-processor module (only needed at compile time):

    <dependency>
      <groupId>com.datastax.dse</groupId>
      <artifactId>dse-java-driver-mapper-processor</artifactId>
      <version>2.1.1</version>
    </dependency>
    
  • dse-java-driver-mapper-runtime (regular runtime dependency):

    <dependency>
      <groupId>com.datastax.dse</groupId>
      <artifactId>dse-java-driver-mapper-runtime</artifactId>
      <version>2.1.1</version>
    </dependency>
    

Refer to the OSS mapper manual for detailed explanations on how to configure those dependencies in your build.

At this time, the DSE mapper is identical to the OSS one. However, we plan to extend it in a future version to support DSE-specific features (in particular reactive queries). We recommend depending on the DSE artifacts now, so that you don’t need to change anything later.