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