Skip to content

Commit

Permalink
Cluster
Browse files Browse the repository at this point in the history
AV-84196
  • Loading branch information
RichardSmedley authored Sep 3, 2024
1 parent d0d2e71 commit 4769f5b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions modules/hello-world/pages/spring-data-sample-application.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,10 @@ public interface UserRepository extends CouchbaseRepository<User, String>, Dynam
}
----

Using the Spring Data Couchbase repository allows us to reduce boilerplate in our code and add a layer of abstraction to our
database interactions.
Using the Spring Data Couchbase repository allows us to reduce boilerplate in our code and add a layer of abstraction to our cluster interactions.

Creating a user shows the typical security concerns, with salted password hashes, as well as the advantages of using
Spring Data Couchbase to `save` the username into the database using the `userRepository` we mentioned previously:
Creating a user shows the typical security concerns, with salted password hashes,
as well as the advantages of using Spring Data Couchbase to `save` the username into the database using the `userRepository` we mentioned previously:

[source,java]
----
Expand Down Expand Up @@ -105,4 +104,4 @@ List<Map<String, Object>> results = new ArrayList<Map<String, Object>>();

include::{version-common}@sdk:shared:partial$sample-application.adoc[tag=data-model]

include::{version-common}@sdk:shared:partial$sample-application.adoc[tag=rest-api]
include::{version-common}@sdk:shared:partial$sample-application.adoc[tag=rest-api]

0 comments on commit 4769f5b

Please sign in to comment.