@@ -125,8 +125,8 @@ To store an instance of this class into Aerospike requires code similar to:
125
125
126
126
``` java
127
127
public void save(Person person, IAerospikeClient client) {
128
- long dobAsLong = (person. dob == null ) ? 0 : person. dob . getTime();
129
- client. put( null , new Key (" test" , " people" , person. ssn,
128
+ long dobAsLong = (person. getDob() == null ) ? 0 : person. getDob() . getTime();
129
+ client. put( null , new Key (" test" , " people" , person. ssn) ,
130
130
new Bin (" ssn" , Value . get(person. getSsn())),
131
131
new Bin (" lstNme" , Value . get(person. getLastName())),
132
132
new Bin (" frstNme" , Value . get(person. getFirstName())),
@@ -139,7 +139,7 @@ Similarly, reading an object requires significant code:
139
139
140
140
``` java
141
141
public Person get(String ssn, IAerospikeClient client) {
142
- Record record = client. get(null , new Key (" test" , " people" , ssn);
142
+ Record record = client. get(null , new Key (" test" , " people" , ssn)) ;
143
143
Person person = new Person ();
144
144
person. setSsn(ssn);
145
145
person. setFirstName(record. getString(" frstNme" ));
0 commit comments