File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -277,6 +277,11 @@ for (ColumnDefinitions.Definition definition : row.getColumnDefinitions()) {
277277}
278278```
279279
280+ ### Object mapping
281+
282+ Besides explicit work with queries and rows, you can also use
283+ [ Object Mapper] ( object_mapper/ ) to simplify retrieval & store of your data.
284+
280285
281286### More information
282287
Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ declaration.
221221
222222[ @Computed ] [ computed ] can be used on properties that are the result of a
223223computation on the Cassandra side, typically a function call. Native
224- functions in Cassandra like ` writetime() ` or [ User Defined Functions] are
224+ functions in Cassandra like ` writetime() ` or [ User- Defined Functions] are
225225supported.
226226
227227``` java
@@ -263,7 +263,7 @@ it should be placed on either the field declaration or the property getter metho
263263
264264### Mapping User Types
265265
266- [ User Defined Types] can also be mapped by using [ @UDT ] [ udt ] :
266+ [ User- Defined Types] can also be mapped by using [ @UDT ] [ udt ] :
267267
268268```
269269CREATE TYPE address (street text, zip_code int);
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ implementation for it:
202202
203203``` java
204204UserAccessor userAccessor = manager. createAccessor(UserAccessor . class);
205- User user = userAccessor. getOne(uuid );
205+ Result< User > users = userAccessor. getAll( );
206206```
207207
208208Like mappers, accessors are cached at the manager level and thus, are
Original file line number Diff line number Diff line change @@ -122,10 +122,10 @@ BoundStatement bound = ps1.bind()
122122
123123// Using the unset method to unset previously set value.
124124// Positional setter:
125- bound. unset(" description " );
125+ bound. unset(1 );
126126
127127// Named setter:
128- bound. unset(1 );
128+ bound. unset(" description " );
129129```
130130
131131A bound statement also has getters to retrieve the values. Note that
You can’t perform that action at this time.
0 commit comments