Commit aaf8ab01617a1ef49cefad16407bc867e62cc53e
1 parent
9e2eb938
Base, à priori
Showing
10 changed files
with
206 additions
and
0 deletions
Show diff stats
... | ... | @@ -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 | ... | ... |
... | ... | @@ -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 | ... | ... |
... | ... | @@ -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 | ... | ... |
... | ... | @@ -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> | ... | ... |
... | ... | @@ -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 | +} | ... | ... |
... | ... | @@ -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 | +} | ... | ... |