@@ -125,8 +125,8 @@ To store an instance of this class into Aerospike requires code similar to:
125125
126126``` java
127127public 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) ,
130130 new Bin (" ssn" , Value . get(person. getSsn())),
131131 new Bin (" lstNme" , Value . get(person. getLastName())),
132132 new Bin (" frstNme" , Value . get(person. getFirstName())),
@@ -139,7 +139,7 @@ Similarly, reading an object requires significant code:
139139
140140``` java
141141public 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)) ;
143143 Person person = new Person ();
144144 person. setSsn(ssn);
145145 person. setFirstName(record. getString(" frstNme" ));
0 commit comments