Skip to content

Commit 7c1d047

Browse files
authored
Merge pull request #12648 from ashatch/ashatch/cassandra-doc-codegen
Cassandra doc explains how to configure the required annotation processor
2 parents 1dcfe86 + 05974ce commit 7c1d047

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/src/main/asciidoc/cassandra.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ The most important part of the `pom.xml` is adding the `cassandra-quarkus` exten
6666
</dependency>
6767
----
6868

69+
Also make sure to follow the
70+
link:https://docs.datastax.com/en/developer/java-driver/latest/manual/mapper/config/[instructions]
71+
on how to add an annotation processor to the compiler configuration. When the project is compiled,
72+
additional mapper classes are generated.
73+
6974
== Creating JSON REST service
7075

7176
In this example, we will create an application to manage a list of fruits.
@@ -179,6 +184,9 @@ public class FruitDaoProducer {
179184
Note how the `QuarkusCqlSession` instance is injected automatically by the cassandra-quarkus
180185
extension in the `FruitDaoProducer` constructor.
181186

187+
Also note that `FruitMapperBuilder` is one of the classes generated automatically by the
188+
`java-driver-mapper-processor` annotation processor.
189+
182190
Now create a `FruitService` that will be the business layer of our application and store/load the
183191
fruits from the Cassandra database.
184192

0 commit comments

Comments
 (0)