diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1a564d1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +# Idea +# From https://intellij-support.jetbrains.com/hc/en-us/articles/206544839-How-to-manage-projects-under-Version-Control-Systems + +.idea/workspace.xml +.idea/tasks.xml +*.iml +.idea/libraries/ +target/ diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..b3fb8cc --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..b26911b --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..5755a99 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,13 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..f096928 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..3f83140 --- /dev/null +++ b/pom.xml @@ -0,0 +1,59 @@ + + + 4.0.0 + + org.springframework + gs-rest-service + 0.1.0 + + + org.springframework.boot + spring-boot-starter-parent + 1.4.4.RELEASE + + + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-test + test + + + com.jayway.jsonpath + json-path + test + + + + + 1.8 + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + + + spring-releases + https://repo.spring.io/libs-release + + + + + spring-releases + https://repo.spring.io/libs-release + + + diff --git a/src/main/java/etunicorn/Permission.java b/src/main/java/etunicorn/Permission.java new file mode 100644 index 0000000..3c327d0 --- /dev/null +++ b/src/main/java/etunicorn/Permission.java @@ -0,0 +1,16 @@ +package etunicorn; + +/** + * Created by geoffrey on 28/01/17. + */ +public class Permission { + private String nom; + + public String getNom() { + return nom; + } + + public void setNom(String nom) { + this.nom = nom; + } +} diff --git a/src/main/java/etunicorn/Personne.java b/src/main/java/etunicorn/Personne.java new file mode 100644 index 0000000..c9989f8 --- /dev/null +++ b/src/main/java/etunicorn/Personne.java @@ -0,0 +1,57 @@ +package etunicorn; + +import java.sql.Date; + +/** + * Created by geoffrey on 28/01/17. + */ +public class Personne { + private int id; + private String carte; + private Date naissance; + private String login; + private Role role; + + public Personne() { + } + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public String getCarte() { + return carte; + } + + public void setCarte(String carte) { + this.carte = carte; + } + + public Date getNaissance() { + return naissance; + } + + public void setNaissance(Date naissance) { + this.naissance = naissance; + } + + public String getLogin() { + return login; + } + + public void setLogin(String login) { + this.login = login; + } + + public Role getRole() { + return role; + } + + public void setRole(Role role) { + this.role = role; + } +} diff --git a/src/main/java/etunicorn/Role.java b/src/main/java/etunicorn/Role.java new file mode 100644 index 0000000..ad8ffc4 --- /dev/null +++ b/src/main/java/etunicorn/Role.java @@ -0,0 +1,16 @@ +package etunicorn; + +/** + * Created by geoffrey on 28/01/17. + */ +public class Role { + private String nom = "etudiant"; + + public String getNom() { + return nom; + } + + public void setNom(String nom) { + this.nom = nom; + } +} -- libgit2 0.21.2