From 05974ce79ce330f1e4b8ac994e4797352237ce04 Mon Sep 17 00:00:00 2001 From: Andrew Hatch Date: Sat, 10 Oct 2020 23:16:11 +0100 Subject: [PATCH] Cassandra doc explains how to configure the required annotation processor --- docs/src/main/asciidoc/cassandra.adoc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/src/main/asciidoc/cassandra.adoc b/docs/src/main/asciidoc/cassandra.adoc index 89dc0314cae2a..902d03fde05bf 100644 --- a/docs/src/main/asciidoc/cassandra.adoc +++ b/docs/src/main/asciidoc/cassandra.adoc @@ -66,6 +66,11 @@ The most important part of the `pom.xml` is adding the `cassandra-quarkus` exten ---- +Also make sure to follow the +link:https://docs.datastax.com/en/developer/java-driver/latest/manual/mapper/config/[instructions] +on how to add an annotation processor to the compiler configuration. When the project is compiled, +additional mapper classes are generated. + == Creating JSON REST service In this example, we will create an application to manage a list of fruits. @@ -179,6 +184,9 @@ public class FruitDaoProducer { Note how the `QuarkusCqlSession` instance is injected automatically by the cassandra-quarkus extension in the `FruitDaoProducer` constructor. +Also note that `FruitMapperBuilder` is one of the classes generated automatically by the +`java-driver-mapper-processor` annotation processor. + Now create a `FruitService` that will be the business layer of our application and store/load the fruits from the Cassandra database.