Skip to content

Commit

Permalink
Cassandra doc explains how to configure the required annotation proce…
Browse files Browse the repository at this point in the history
…ssor
  • Loading branch information
ashatch committed Oct 10, 2020
1 parent e1b2375 commit 05974ce
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/src/main/asciidoc/cassandra.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ The most important part of the `pom.xml` is adding the `cassandra-quarkus` exten
</dependency>
----

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.
Expand Down Expand Up @@ -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.

Expand Down

0 comments on commit 05974ce

Please sign in to comment.