Adding eclipse formatting
This commit is contained in:
parent
be8feed491
commit
948a7279fc
|
@ -7,8 +7,6 @@
|
||||||
<version>0.0.1-SNAPSHOT</version>
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>sprint-data-redis</name>
|
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<spring.version>4.2.2.RELEASE</spring.version>
|
<spring.version>4.2.2.RELEASE</spring.version>
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
package org.baeldung.spring.data.redis.model;
|
package org.baeldung.spring.data.redis.model;
|
||||||
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
public class Student implements Serializable {
|
public class Student implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = -1907106213598514113L;
|
private static final long serialVersionUID = -1907106213598514113L;
|
||||||
|
|
||||||
public enum Gender{Male, Female}
|
public enum Gender {
|
||||||
|
Male, Female
|
||||||
|
}
|
||||||
|
|
||||||
private String id;
|
private String id;
|
||||||
private String name;
|
private String name;
|
||||||
private Gender gender;
|
private Gender gender;
|
||||||
|
@ -54,11 +56,6 @@ public class Student implements Serializable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "Student{" +
|
return "Student{" + "id='" + id + '\'' + ", name='" + name + '\'' + ", gender=" + gender + ", grade=" + grade + '}';
|
||||||
"id='" + id + '\'' +
|
|
||||||
", name='" + name + '\'' +
|
|
||||||
", gender=" + gender +
|
|
||||||
", grade=" + grade +
|
|
||||||
'}';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -5,6 +5,7 @@ import org.baeldung.spring.data.redis.model.Student;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
public interface StudentRepository {
|
public interface StudentRepository {
|
||||||
|
|
||||||
void saveStudent(Student person);
|
void saveStudent(Student person);
|
||||||
|
|
||||||
void updateStudent(Student student);
|
void updateStudent(Student student);
|
||||||
|
|
Loading…
Reference in New Issue