commit dc318bc01de95992f2142740e5df310c5bd0afc6 Author: insanity Date: Fri Jun 2 16:22:37 2017 +0900 1.0.0-RELEASE diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..53a4c18 --- /dev/null +++ b/.gitignore @@ -0,0 +1,72 @@ +# Created by .ignore support plugin (hsz.mobi) +### Java template +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* +### JetBrains template +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff: +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/dictionaries + +# Sensitive or high-churn files: +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.xml +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml + +# Gradle: +.idea/**/gradle.xml +.idea/**/libraries + +# Mongo Explorer plugin: +.idea/**/mongoSettings.xml + +## File-based project format: +*.iws + +## Plugin-specific files: + +# IntelliJ +/out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +.idea/ +*.iml +target/ diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..ee39bd9 --- /dev/null +++ b/pom.xml @@ -0,0 +1,30 @@ + + + 4.0.0 + + + com.loafle + maven_parent_jar + 1.0.0-RELEASE + + + com.loafle + overflow_agent + jar + 1.0.0-SNAPSHOT + com.loafle.overflow_agent + + + + + org.hibernate + hibernate-entitymanager + 5.2.10.Final + + + + + + \ No newline at end of file diff --git a/src/main/java/com/loafle/overflow/agent/model/Agent.java b/src/main/java/com/loafle/overflow/agent/model/Agent.java new file mode 100644 index 0000000..4864ec4 --- /dev/null +++ b/src/main/java/com/loafle/overflow/agent/model/Agent.java @@ -0,0 +1,37 @@ +package com.loafle.overflow.agent.model; + +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.GenerationType; +import javax.persistence.Id; +import java.io.Serializable; + +/** + * Created by insanity on 17. 5. 29. + */ + +@Entity(name="AGENT") +public class Agent implements Serializable { + @Id + @GeneratedValue(strategy= GenerationType.IDENTITY) + private Long id; + + private Long authorizedDate; + + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getAuthorizedDate() { + return authorizedDate; + } + + public void setAuthorizedDate(Long authorizedDate) { + this.authorizedDate = authorizedDate; + } +} diff --git a/src/main/resources/_ b/src/main/resources/_ new file mode 100644 index 0000000..e69de29 diff --git a/src/test/java/com/loafle/AppTest.java b/src/test/java/com/loafle/AppTest.java new file mode 100644 index 0000000..602644e --- /dev/null +++ b/src/test/java/com/loafle/AppTest.java @@ -0,0 +1,15 @@ + +package com.loafle; + +import org.junit.Ignore; +import org.junit.Test; + +import static org.junit.Assert.fail; + +@Ignore +public class AppTest { + @Test + public void testSum() { + fail("Not yet implemented"); + } +} \ No newline at end of file diff --git a/src/test/resources/logback.xml b/src/test/resources/logback.xml new file mode 100644 index 0000000..d754c5b --- /dev/null +++ b/src/test/resources/logback.xml @@ -0,0 +1,17 @@ + + + overflow_agent + + + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{32} - %msg%n + + + + + + + + + \ No newline at end of file