Skip to content

Commit c19b2b1

Browse files
Quick fixes
'backported' from github.com/couchbase/docs-sdk-go/pull/257
1 parent 311f9e0 commit c19b2b1

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

modules/hello-world/pages/student-record-developer-tutorial.adoc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ In a relational database, this is usually a link record that creates a relations
4949
In a relational model, the database contains a list of students and a list of courses.
5050
Each student can enroll in multiple courses.
5151

52-
A students enrollment record is stored in a separate table called `enrollment`, which links that record to the courses they are enrolling in.
52+
A student's enrollment record is stored in a separate table called `enrollment`, which links that record to the courses they are enrolling in.
5353

5454
[plantuml,student-record-erd,svg]
5555
....
@@ -78,7 +78,7 @@ include::partial$diagrams/student-document-database-design.puml[]
7878
With JSON, you can change the structure of the document without having to rebuild schemas.
7979
For example, you can add a new field to store students' email addresses without migrating existing data to a new schema.
8080

81-
In a document database, a students record and their course records can look similar to this:
81+
In a document database, a student's record and their course records can look similar to this:
8282

8383
.Student record
8484
[source, json]
@@ -122,8 +122,8 @@ In a document database, a student’s record and their course records can look s
122122
}
123123
----
124124

125-
Hilarys enrollment is stored in the same document as her student details, which means child information is stored with its parent.
126-
This structure lets you access and retrieve all of Hilarys details with one search and without the need for complex table joins.
125+
Hilary's enrollment is stored in the same document as her student details, which means child information is stored with its parent.
126+
This structure lets you access and retrieve all of Hilary's details with one search and without the need for complex table joins.
127127

128128
NOTE: You should not store a student with their course record as it can lead to data duplication and make it difficult to maintain your data.
129129
For example, you would need to access every single student record in your cluster to change the `credit-points`.
@@ -207,7 +207,7 @@ To create the second collection, follow the above steps but use the existing `st
207207

208208
The two collections allow you to use the relational model and the document model at the same time to achieve the best design and performance possible.
209209

210-
The `student-record-collection` contains student records, and each student record contains a list of that students enrollments.
210+
The `student-record-collection` contains student records, and each student record contains a list of that student's enrollments.
211211
Unlike the standard relational model decomposition where a link table is created between students and courses, a document model stores the enrollments as part of the student records.
212212

213213
The `course-record-collection`, on the other hand, uses the relational model to link the enrollment records to the course records they apply to.
@@ -395,7 +395,7 @@ If the connection is successful, the collection name outputs in the console log.
395395
+
396396
image::student-record-collection-console-output.png[alt="Console showing successful connection to server"]
397397

398-
If you come across errors in your console, see the <<#roubleshooting,troubleshooting section>>.
398+
If you come across errors in your console, see the <<#troubleshooting,troubleshooting section>>.
399399

400400

401401

@@ -418,7 +418,7 @@ include::devguide:example$java/InsertStudent.java[]
418418
. Run the command `mvn install` to pull in all the dependencies and rebuild your application.
419419
. Run the following command to insert the student record into the collection:
420420
+
421-
[source, sh]
421+
[source, console]
422422
----
423423
mvn exec:java -Dexec.mainClass="InsertStudent" -Dexec.cleanupDaemonThreads=false
424424
----
@@ -449,7 +449,7 @@ include::devguide:example$java/InsertCourses.java[]
449449
. Run the command `mvn install` to pull in all the dependencies and rebuild your application.
450450
. Run the following command to insert the student record into the collection:
451451
+
452-
[source, sh]
452+
[source, console]
453453
----
454454
mvn exec:java -Dexec.mainClass="InsertCourses" -Dexec.cleanupDaemonThreads=false
455455
----
@@ -458,7 +458,7 @@ mvn exec:java -Dexec.mainClass="InsertCourses" -Dexec.cleanupDaemonThreads=false
458458
+
459459
image::new-course-records.png[alt="Courses added to the course-record-collection in the cluster"]
460460

461-
If you come across errors in your console, see the <<#roubleshooting,troubleshooting section>>.
461+
If you come across errors in your console, see the <<#troubleshooting,troubleshooting section>>.
462462

463463

464464

@@ -636,7 +636,7 @@ include::devguide:example$java/ArtSchoolRetrieverAll.java[]
636636
. Run the command `mvn install` to pull in all the dependencies and rebuild your application.
637637
. Run the following command to retrieve all course records:
638638
+
639-
[source, sh]
639+
[source, console]
640640
----
641641
mvn exec:java -Dexec.mainClass="ArtSchoolRetriever" -Dexec.cleanupDaemonThreads=false
642642
----
@@ -663,7 +663,7 @@ include::devguide:example$java/ArtSchoolRetriever.java[]
663663
. Run the command `mvn install` to pull in all the dependencies and rebuild your application.
664664
. Run the following command to retrieve all course records:
665665
+
666-
[source, sh]
666+
[source, console]
667667
----
668668
mvn exec:java -Dexec.mainClass="ArtSchoolRetrieverParameters" -Dexec.cleanupDaemonThreads=false
669669
----
@@ -710,7 +710,7 @@ mvn exec:java -Dexec.mainClass="AddEnrollments" -Dexec.cleanupDaemonThreads=fals
710710
+
711711
image::updated-student-record.png[alt="Updated student record with course enrollment" width="600" height="800"]
712712

713-
If you come across errors in your console, see the <<#roubleshooting,troubleshooting section>>.
713+
If you come across errors in your console, see the <<#troubleshooting,troubleshooting section>>.
714714

715715
=== Next Steps
716716

0 commit comments

Comments
 (0)