Commit aaf8ab01617a1ef49cefad16407bc867e62cc53e

Authored by Geoffrey PREUD'HOMME
1 parent 9e2eb938

Base, à priori

.gitignore 0 → 100644
... ... @@ -0,0 +1,8 @@
  1 +# Idea
  2 +# From https://intellij-support.jetbrains.com/hc/en-us/articles/206544839-How-to-manage-projects-under-Version-Control-Systems
  3 +
  4 +.idea/workspace.xml
  5 +.idea/tasks.xml
  6 +*.iml
  7 +.idea/libraries/
  8 +target/
... ...
.idea/compiler.xml 0 → 100644
... ... @@ -0,0 +1,16 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project version="4">
  3 + <component name="CompilerConfiguration">
  4 + <annotationProcessing>
  5 + <profile name="Maven default annotation processors profile" enabled="true">
  6 + <sourceOutputDir name="target/generated-sources/annotations" />
  7 + <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
  8 + <outputRelativeToContentRoot value="true" />
  9 + <module name="gs-rest-service" />
  10 + </profile>
  11 + </annotationProcessing>
  12 + <bytecodeTargetLevel>
  13 + <module name="gs-rest-service" target="1.8" />
  14 + </bytecodeTargetLevel>
  15 + </component>
  16 +</project>
0 17 \ No newline at end of file
... ...
.idea/encodings.xml 0 → 100644
... ... @@ -0,0 +1,6 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project version="4">
  3 + <component name="Encoding">
  4 + <file url="file://$PROJECT_DIR$" charset="UTF-8" />
  5 + </component>
  6 +</project>
0 7 \ No newline at end of file
... ...
.idea/misc.xml 0 → 100644
... ... @@ -0,0 +1,13 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project version="4">
  3 + <component name="MavenProjectsManager">
  4 + <option name="originalFiles">
  5 + <list>
  6 + <option value="$PROJECT_DIR$/pom.xml" />
  7 + </list>
  8 + </option>
  9 + </component>
  10 + <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
  11 + <output url="file://$PROJECT_DIR$/out" />
  12 + </component>
  13 +</project>
0 14 \ No newline at end of file
... ...
.idea/modules.xml 0 → 100644
... ... @@ -0,0 +1,9 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project version="4">
  3 + <component name="ProjectModuleManager">
  4 + <modules>
  5 + <module fileurl="file://$PROJECT_DIR$/gs-rest-service.iml" filepath="$PROJECT_DIR$/gs-rest-service.iml" />
  6 + <module fileurl="file://$PROJECT_DIR$/src/main/main.iml" filepath="$PROJECT_DIR$/src/main/main.iml" />
  7 + </modules>
  8 + </component>
  9 +</project>
0 10 \ No newline at end of file
... ...
.idea/vcs.xml 0 → 100644
... ... @@ -0,0 +1,6 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project version="4">
  3 + <component name="VcsDirectoryMappings">
  4 + <mapping directory="$PROJECT_DIR$" vcs="Git" />
  5 + </component>
  6 +</project>
0 7 \ No newline at end of file
... ...
pom.xml 0 → 100644
... ... @@ -0,0 +1,59 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4 + <modelVersion>4.0.0</modelVersion>
  5 +
  6 + <groupId>org.springframework</groupId>
  7 + <artifactId>gs-rest-service</artifactId>
  8 + <version>0.1.0</version>
  9 +
  10 + <parent>
  11 + <groupId>org.springframework.boot</groupId>
  12 + <artifactId>spring-boot-starter-parent</artifactId>
  13 + <version>1.4.4.RELEASE</version>
  14 + </parent>
  15 +
  16 + <dependencies>
  17 + <dependency>
  18 + <groupId>org.springframework.boot</groupId>
  19 + <artifactId>spring-boot-starter-web</artifactId>
  20 + </dependency>
  21 + <dependency>
  22 + <groupId>org.springframework.boot</groupId>
  23 + <artifactId>spring-boot-starter-test</artifactId>
  24 + <scope>test</scope>
  25 + </dependency>
  26 + <dependency>
  27 + <groupId>com.jayway.jsonpath</groupId>
  28 + <artifactId>json-path</artifactId>
  29 + <scope>test</scope>
  30 + </dependency>
  31 + </dependencies>
  32 +
  33 + <properties>
  34 + <java.version>1.8</java.version>
  35 + </properties>
  36 +
  37 +
  38 + <build>
  39 + <plugins>
  40 + <plugin>
  41 + <groupId>org.springframework.boot</groupId>
  42 + <artifactId>spring-boot-maven-plugin</artifactId>
  43 + </plugin>
  44 + </plugins>
  45 + </build>
  46 +
  47 + <repositories>
  48 + <repository>
  49 + <id>spring-releases</id>
  50 + <url>https://repo.spring.io/libs-release</url>
  51 + </repository>
  52 + </repositories>
  53 + <pluginRepositories>
  54 + <pluginRepository>
  55 + <id>spring-releases</id>
  56 + <url>https://repo.spring.io/libs-release</url>
  57 + </pluginRepository>
  58 + </pluginRepositories>
  59 +</project>
... ...
src/main/java/etunicorn/Permission.java 0 → 100644
... ... @@ -0,0 +1,16 @@
  1 +package etunicorn;
  2 +
  3 +/**
  4 + * Created by geoffrey on 28/01/17.
  5 + */
  6 +public class Permission {
  7 + private String nom;
  8 +
  9 + public String getNom() {
  10 + return nom;
  11 + }
  12 +
  13 + public void setNom(String nom) {
  14 + this.nom = nom;
  15 + }
  16 +}
... ...
src/main/java/etunicorn/Personne.java 0 → 100644
... ... @@ -0,0 +1,57 @@
  1 +package etunicorn;
  2 +
  3 +import java.sql.Date;
  4 +
  5 +/**
  6 + * Created by geoffrey on 28/01/17.
  7 + */
  8 +public class Personne {
  9 + private int id;
  10 + private String carte;
  11 + private Date naissance;
  12 + private String login;
  13 + private Role role;
  14 +
  15 + public Personne() {
  16 + }
  17 +
  18 + public int getId() {
  19 + return id;
  20 + }
  21 +
  22 + public void setId(int id) {
  23 + this.id = id;
  24 + }
  25 +
  26 + public String getCarte() {
  27 + return carte;
  28 + }
  29 +
  30 + public void setCarte(String carte) {
  31 + this.carte = carte;
  32 + }
  33 +
  34 + public Date getNaissance() {
  35 + return naissance;
  36 + }
  37 +
  38 + public void setNaissance(Date naissance) {
  39 + this.naissance = naissance;
  40 + }
  41 +
  42 + public String getLogin() {
  43 + return login;
  44 + }
  45 +
  46 + public void setLogin(String login) {
  47 + this.login = login;
  48 + }
  49 +
  50 + public Role getRole() {
  51 + return role;
  52 + }
  53 +
  54 + public void setRole(Role role) {
  55 + this.role = role;
  56 + }
  57 +}
... ...
src/main/java/etunicorn/Role.java 0 → 100644
... ... @@ -0,0 +1,16 @@
  1 +package etunicorn;
  2 +
  3 +/**
  4 + * Created by geoffrey on 28/01/17.
  5 + */
  6 +public class Role {
  7 + private String nom = "etudiant";
  8 +
  9 + public String getNom() {
  10 + return nom;
  11 + }
  12 +
  13 + public void setNom(String nom) {
  14 + this.nom = nom;
  15 + }
  16 +}
... ...