Created
August 17, 2018 04:41
-
-
Save matheusnienow/c7786429180a98290ecbe105acd6ffc7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project version="4"> | |
<component name="CompilerConfiguration"> | |
<annotationProcessing> | |
<profile name="Maven default annotation processors profile" enabled="true"> | |
<sourceOutputDir name="target/generated-sources/annotations" /> | |
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" /> | |
<outputRelativeToContentRoot value="true" /> | |
<module name="TaskList" /> | |
</profile> | |
</annotationProcessing> | |
</component> | |
</project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project version="4"> | |
<component name="ExternalStorageConfigurationManager" enabled="true" /> | |
<component name="MavenProjectsManager"> | |
<option name="originalFiles"> | |
<list> | |
<option value="$PROJECT_DIR$/pom.xml" /> | |
</list> | |
</option> | |
</component> | |
<component name="ProjectRootManager" version="2" languageLevel="JDK_10" project-jdk-name="10" project-jdk-type="JavaSDK"> | |
<output url="file://$PROJECT_DIR$/out" /> | |
</component> | |
</project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.nienow.navarro.matheus</groupId> | |
<artifactId>task-list</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<dependencies> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-web</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-test</artifactId> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>com.jayway.jsonpath</groupId> | |
<artifactId>json-path</artifactId> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-maven-plugin</artifactId> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<configuration> | |
<source>10</source> | |
<target>10</target> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
<repositories> | |
<repository> | |
<id>spring-releases</id> | |
<url>https://repo.spring.io/libs-release</url> | |
</repository> | |
</repositories> | |
<pluginRepositories> | |
<pluginRepository> | |
<id>spring-releases</id> | |
<url>https://repo.spring.io/libs-release</url> | |
</pluginRepository> | |
</pluginRepositories> | |
</project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package model; | |
import java.time.LocalDateTime; | |
public class Task { | |
private String title; | |
private String content; | |
private LocalDateTime creationDate; | |
private LocalDateTime conclusionDate; | |
private LocalDateTime editionDate; | |
private LocalDateTime removalDate; | |
private boolean done; | |
public Task() { | |
} | |
public Task(String title, String content) { | |
var now = LocalDateTime.now(); | |
this.title = title; | |
this.content = content; | |
this.creationDate = now; | |
this.conclusionDate = null; | |
this.editionDate = now; | |
this.removalDate = null; | |
this.done = false; | |
} | |
public String getTitle() { | |
return title; | |
} | |
public void setTitle(String title) { | |
this.title = title; | |
} | |
public String getContent() { | |
return content; | |
} | |
public void setContent(String content) { | |
this.content = content; | |
} | |
public LocalDateTime getCreationDate() { | |
return creationDate; | |
} | |
public void setCreationDate(LocalDateTime creationDate) { | |
this.creationDate = creationDate; | |
} | |
public LocalDateTime getConclusionDate() { | |
return conclusionDate; | |
} | |
public void setConclusionDate(LocalDateTime conclusionDate) { | |
this.conclusionDate = conclusionDate; | |
} | |
public LocalDateTime getEditionDate() { | |
return editionDate; | |
} | |
public void setEditionDate(LocalDateTime editionDate) { | |
this.editionDate = editionDate; | |
} | |
public LocalDateTime getRemovalDate() { | |
return removalDate; | |
} | |
public void setRemovalDate(LocalDateTime removalDate) { | |
this.removalDate = removalDate; | |
} | |
public boolean isDone() { | |
return done; | |
} | |
public void setDone(boolean done) { | |
this.done = done; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<module type="JAVA_MODULE" version="4" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment