Skip to content

Commit b820843

Browse files
authored
Update examples in the readme (#179)
Fixed missing getters and parentheses from the first example
1 parent 195c718 commit b820843

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ To store an instance of this class into Aerospike requires code similar to:
125125

126126
```java
127127
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),
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
141141
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));
143143
Person person = new Person();
144144
person.setSsn(ssn);
145145
person.setFirstName(record.getString("frstNme"));

0 commit comments

Comments
 (0)