Polish contribution
Closes gh-3499
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
|
||||
package sample.data.couchbase;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.CommandLineRunner;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
@@ -40,8 +42,9 @@ public class SampleCouchbaseApplication implements CommandLineRunner {
|
||||
|
||||
private void saveUsers() {
|
||||
User user = new User();
|
||||
user.setFirstname("Alice");
|
||||
user.setLastname("Smith");
|
||||
user.setId(UUID.randomUUID().toString());
|
||||
user.setFirstName("Alice");
|
||||
user.setLastName("Smith");
|
||||
|
||||
this.userRepository.save(user);
|
||||
}
|
||||
|
||||
@@ -28,10 +28,10 @@ public class User {
|
||||
private String id;
|
||||
|
||||
@Field
|
||||
private String firstname;
|
||||
private String firstName;
|
||||
|
||||
@Field
|
||||
private String lastname;
|
||||
private String lastName;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
@@ -41,28 +41,28 @@ public class User {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getFirstname() {
|
||||
return this.firstname;
|
||||
public String getFirstName() {
|
||||
return this.firstName;
|
||||
}
|
||||
|
||||
public void setFirstname(String firstname) {
|
||||
this.firstname = firstname;
|
||||
public void setFirstName(String firstName) {
|
||||
this.firstName = firstName;
|
||||
}
|
||||
|
||||
public String getLastname() {
|
||||
return this.lastname;
|
||||
public String getLastName() {
|
||||
return this.lastName;
|
||||
}
|
||||
|
||||
public void setLastname(String lastname) {
|
||||
this.lastname = lastname;
|
||||
public void setLastName(String lastName) {
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "User{" +
|
||||
"id='" + this.id + '\'' +
|
||||
", firstname='" + this.firstname + '\'' +
|
||||
", lastname='" + this.lastname + '\'' +
|
||||
", firstName='" + this.firstName + '\'' +
|
||||
", lastName='" + this.lastName + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user