Small fixes & improvements in documentation (#934)
* Update example to match declared interface
* swap calls to match commentary
* explicitly mention Object Mapper in top-level document
* uniform style for "user-defined" objects
diff --git a/manual/README.md b/manual/README.md
index 0e8e3c3..4565da7 100644
--- a/manual/README.md
+++ b/manual/README.md
@@ -277,6 +277,11 @@
}
```
+### Object mapping
+
+Besides explicit work with queries and rows, you can also use
+[Object Mapper](object_mapper/) to simplify retrieval & store of your data.
+
### More information
diff --git a/manual/object_mapper/creating/README.md b/manual/object_mapper/creating/README.md
index b5ba962..8292e12 100644
--- a/manual/object_mapper/creating/README.md
+++ b/manual/object_mapper/creating/README.md
@@ -221,7 +221,7 @@
[@Computed][computed] can be used on properties that are the result of a
computation on the Cassandra side, typically a function call. Native
-functions in Cassandra like `writetime()` or [User Defined Functions] are
+functions in Cassandra like `writetime()` or [User-Defined Functions] are
supported.
```java
@@ -249,7 +249,7 @@
version (see
[JAVA-832](https://datastax-oss.atlassian.net/browse/JAVA-832)).
-[User Defined Functions]:http://www.planetcassandra.org/blog/user-defined-functions-in-cassandra-3-0/
+[User-Defined Functions]:http://www.planetcassandra.org/blog/user-defined-functions-in-cassandra-3-0/
[computed]:http://docs.datastax.com/en/drivers/java/3.3/com/datastax/driver/mapping/annotations/Computed.html
#### Transient properties
@@ -263,7 +263,7 @@
### Mapping User Types
-[User Defined Types] can also be mapped by using [@UDT][udt]:
+[User-Defined Types] can also be mapped by using [@UDT][udt]:
```
CREATE TYPE address (street text, zip_code int);
@@ -321,7 +321,7 @@
This also works with UDTs inside collections or other UDTs, with any arbitrary
nesting level.
-[User Defined Types]: ../../udts/
+[User-Defined Types]: ../../udts/
[udt]:http://docs.datastax.com/en/drivers/java/3.3/com/datastax/driver/mapping/annotations/UDT.html
[field]:http://docs.datastax.com/en/drivers/java/3.3/com/datastax/driver/mapping/annotations/Field.html
diff --git a/manual/object_mapper/using/README.md b/manual/object_mapper/using/README.md
index 137cfe5..6be548a 100644
--- a/manual/object_mapper/using/README.md
+++ b/manual/object_mapper/using/README.md
@@ -202,7 +202,7 @@
```java
UserAccessor userAccessor = manager.createAccessor(UserAccessor.class);
-User user = userAccessor.getOne(uuid);
+Result<User> users = userAccessor.getAll();
```
Like mappers, accessors are cached at the manager level and thus, are
diff --git a/manual/statements/prepared/README.md b/manual/statements/prepared/README.md
index 4fe8c95..b544d3a 100644
--- a/manual/statements/prepared/README.md
+++ b/manual/statements/prepared/README.md
@@ -122,10 +122,10 @@
// Using the unset method to unset previously set value.
// Positional setter:
-bound.unset("description");
+bound.unset(1);
// Named setter:
-bound.unset(1);
+bound.unset("description");
```
A bound statement also has getters to retrieve the values. Note that
@@ -264,4 +264,4 @@
[execute]: http://docs.datastax.com/en/drivers/java/3.3/com/datastax/driver/core/Session.html#execute-com.datastax.driver.core.Statement-
[executeAsync]: http://docs.datastax.com/en/drivers/java/3.3/com/datastax/driver/core/Session.html#executeAsync-com.datastax.driver.core.Statement-
[CASSANDRA-10786]: https://issues.apache.org/jira/browse/CASSANDRA-10786
-[JAVA-1196]: https://datastax-oss.atlassian.net/browse/JAVA-1196
\ No newline at end of file
+[JAVA-1196]: https://datastax-oss.atlassian.net/browse/JAVA-1196