BlackJack 6 年 前
コミット
0dcccdfa73
共有33 個のファイルを変更した583 個の追加0 個の削除を含む
  1. 16
    0
      .idea/compiler.xml
  2. 6
    0
      .idea/encodings.xml
  3. 13
    0
      .idea/libraries/Maven__com_j256_ormlite_ormlite_core_4_48.xml
  4. 13
    0
      .idea/libraries/Maven__com_j256_ormlite_ormlite_jdbc_4_48.xml
  5. 13
    0
      .idea/libraries/Maven__junit_junit_4_11.xml
  6. 13
    0
      .idea/libraries/Maven__mysql_mysql_connector_java_5_1_6.xml
  7. 13
    0
      .idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml
  8. 124
    0
      .idea/uiDesigner.xml
  9. 6
    0
      .idea/vcs.xml
  10. バイナリ
      ormlitecore/.DS_Store
  11. 1
    0
      ormlitecore/.idea/.name
  12. 13
    0
      ormlitecore/.idea/compiler.xml
  13. 6
    0
      ormlitecore/.idea/encodings.xml
  14. 14
    0
      ormlitecore/.idea/misc.xml
  15. 85
    0
      ormlitecore/.idea/workspace.xml
  16. 2
    0
      ormlitecore/ormlitecore.iml
  17. 84
    0
      ormlitecore/pom.xml
  18. バイナリ
      ormlitecore/src/.DS_Store
  19. バイナリ
      ormlitecore/src/main/.DS_Store
  20. バイナリ
      ormlitecore/src/main/java/.DS_Store
  21. 64
    0
      ormlitecore/src/main/java/Account.java
  22. 65
    0
      ormlitecore/src/main/java/AccountApp.java
  23. バイナリ
      ormlitecore/src/main/java/com/.DS_Store
  24. バイナリ
      ormlitecore/src/main/java/com/j256/.DS_Store
  25. バイナリ
      ormlitecore/src/main/java/com/j256/ormlite/.DS_Store
  26. 5
    0
      ormlitecore/src/test/java/AccountTest.java
  27. 7
    0
      ormlitecore/src/test/java/com/j256/ormlite/AccountTest.java
  28. 20
    0
      ormlitecore/src/test/java/com/j256/ormlite/AppTest.java
  29. バイナリ
      ormlitecore/target/classes/Account.class
  30. バイナリ
      ormlitecore/target/classes/AccountApp.class
  31. バイナリ
      ormlitecore/target/test-classes/AccountTest.class
  32. バイナリ
      ormlitecore/target/test-classes/com/j256/ormlite/AccountTest.class
  33. バイナリ
      ormlitecore/target/test-classes/com/j256/ormlite/AppTest.class

+ 16
- 0
.idea/compiler.xml ファイルの表示

@@ -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="ZCW-ORM-SimpleAccount" />
10
+      </profile>
11
+    </annotationProcessing>
12
+    <bytecodeTargetLevel>
13
+      <module name="ZCW-ORM-SimpleAccount" target="1.7" />
14
+    </bytecodeTargetLevel>
15
+  </component>
16
+</project>

+ 6
- 0
.idea/encodings.xml ファイルの表示

@@ -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$/ormlitecore" charset="UTF-8" />
5
+  </component>
6
+</project>

+ 13
- 0
.idea/libraries/Maven__com_j256_ormlite_ormlite_core_4_48.xml ファイルの表示

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: com.j256.ormlite:ormlite-core:4.48">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/com/j256/ormlite/ormlite-core/4.48/ormlite-core-4.48.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/com/j256/ormlite/ormlite-core/4.48/ormlite-core-4.48-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/com/j256/ormlite/ormlite-core/4.48/ormlite-core-4.48-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__com_j256_ormlite_ormlite_jdbc_4_48.xml ファイルの表示

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: com.j256.ormlite:ormlite-jdbc:4.48">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/com/j256/ormlite/ormlite-jdbc/4.48/ormlite-jdbc-4.48.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/com/j256/ormlite/ormlite-jdbc/4.48/ormlite-jdbc-4.48-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/com/j256/ormlite/ormlite-jdbc/4.48/ormlite-jdbc-4.48-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__junit_junit_4_11.xml ファイルの表示

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: junit:junit:4.11">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.11/junit-4.11.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.11/junit-4.11-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.11/junit-4.11-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__mysql_mysql_connector_java_5_1_6.xml ファイルの表示

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: mysql:mysql-connector-java:5.1.6">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/mysql/mysql-connector-java/5.1.6/mysql-connector-java-5.1.6.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/mysql/mysql-connector-java/5.1.6/mysql-connector-java-5.1.6-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/mysql/mysql-connector-java/5.1.6/mysql-connector-java-5.1.6-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml ファイルの表示

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: org.hamcrest:hamcrest-core:1.3">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 124
- 0
.idea/uiDesigner.xml ファイルの表示

@@ -0,0 +1,124 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="Palette2">
4
+    <group name="Swing">
5
+      <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
6
+        <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
7
+      </item>
8
+      <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
9
+        <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
10
+      </item>
11
+      <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
12
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
13
+      </item>
14
+      <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
15
+        <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
16
+      </item>
17
+      <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
18
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
19
+        <initial-values>
20
+          <property name="text" value="Button" />
21
+        </initial-values>
22
+      </item>
23
+      <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
24
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
25
+        <initial-values>
26
+          <property name="text" value="RadioButton" />
27
+        </initial-values>
28
+      </item>
29
+      <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
30
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
31
+        <initial-values>
32
+          <property name="text" value="CheckBox" />
33
+        </initial-values>
34
+      </item>
35
+      <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
36
+        <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
37
+        <initial-values>
38
+          <property name="text" value="Label" />
39
+        </initial-values>
40
+      </item>
41
+      <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
42
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
43
+          <preferred-size width="150" height="-1" />
44
+        </default-constraints>
45
+      </item>
46
+      <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
47
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
48
+          <preferred-size width="150" height="-1" />
49
+        </default-constraints>
50
+      </item>
51
+      <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
52
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
53
+          <preferred-size width="150" height="-1" />
54
+        </default-constraints>
55
+      </item>
56
+      <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
57
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
58
+          <preferred-size width="150" height="50" />
59
+        </default-constraints>
60
+      </item>
61
+      <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
62
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
63
+          <preferred-size width="150" height="50" />
64
+        </default-constraints>
65
+      </item>
66
+      <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
67
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
68
+          <preferred-size width="150" height="50" />
69
+        </default-constraints>
70
+      </item>
71
+      <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
72
+        <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
73
+      </item>
74
+      <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
75
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
76
+          <preferred-size width="150" height="50" />
77
+        </default-constraints>
78
+      </item>
79
+      <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
80
+        <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
81
+          <preferred-size width="150" height="50" />
82
+        </default-constraints>
83
+      </item>
84
+      <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
85
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
86
+          <preferred-size width="150" height="50" />
87
+        </default-constraints>
88
+      </item>
89
+      <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
90
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
91
+          <preferred-size width="200" height="200" />
92
+        </default-constraints>
93
+      </item>
94
+      <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
95
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
96
+          <preferred-size width="200" height="200" />
97
+        </default-constraints>
98
+      </item>
99
+      <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
100
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
101
+      </item>
102
+      <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
103
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
104
+      </item>
105
+      <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
106
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
107
+      </item>
108
+      <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
109
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
110
+      </item>
111
+      <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
112
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
113
+          <preferred-size width="-1" height="20" />
114
+        </default-constraints>
115
+      </item>
116
+      <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
117
+        <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
118
+      </item>
119
+      <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
120
+        <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
121
+      </item>
122
+    </group>
123
+  </component>
124
+</project>

+ 6
- 0
.idea/vcs.xml ファイルの表示

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="VcsDirectoryMappings">
4
+    <mapping directory="" vcs="Git" />
5
+  </component>
6
+</project>

バイナリ
ormlitecore/.DS_Store ファイルの表示


+ 1
- 0
ormlitecore/.idea/.name ファイルの表示

@@ -0,0 +1 @@
1
+ormlite-core

+ 13
- 0
ormlitecore/.idea/compiler.xml ファイルの表示

@@ -0,0 +1,13 @@
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="ormlite-core" />
10
+      </profile>
11
+    </annotationProcessing>
12
+  </component>
13
+</project>

+ 6
- 0
ormlitecore/.idea/encodings.xml ファイルの表示

@@ -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>

+ 14
- 0
ormlitecore/.idea/misc.xml ファイルの表示

@@ -0,0 +1,14 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ExternalStorageConfigurationManager" enabled="true" />
4
+  <component name="MavenProjectsManager">
5
+    <option name="originalFiles">
6
+      <list>
7
+        <option value="$PROJECT_DIR$/pom.xml" />
8
+      </list>
9
+    </option>
10
+  </component>
11
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
12
+    <output url="file://$PROJECT_DIR$/out" />
13
+  </component>
14
+</project>

+ 85
- 0
ormlitecore/.idea/workspace.xml ファイルの表示

@@ -0,0 +1,85 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="NodePackageJsonFileManager">
4
+    <packageJsonPaths />
5
+  </component>
6
+  <component name="ProjectFrameBounds" extendedState="6">
7
+    <option name="width" value="1280" />
8
+    <option name="height" value="800" />
9
+  </component>
10
+  <component name="PropertiesComponent">
11
+    <property name="WebServerToolWindowFactoryState" value="false" />
12
+    <property name="aspect.path.notification.shown" value="true" />
13
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
14
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
15
+  </component>
16
+  <component name="RunManager">
17
+    <configuration name="AccountApp" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
18
+      <option name="MAIN_CLASS_NAME" value="AccountApp" />
19
+      <module name="ormlite-core" />
20
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
21
+    </configuration>
22
+    <configuration default="true" type="Application" factoryName="Application">
23
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
24
+    </configuration>
25
+    <configuration default="true" type="JUnit" factoryName="JUnit">
26
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
27
+      <option name="ALTERNATIVE_JRE_PATH" />
28
+      <option name="PACKAGE_NAME" />
29
+      <option name="MAIN_CLASS_NAME" />
30
+      <option name="METHOD_NAME" />
31
+      <option name="TEST_OBJECT" value="class" />
32
+      <option name="VM_PARAMETERS" value="-ea" />
33
+      <option name="PARAMETERS" />
34
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
35
+      <option name="PASS_PARENT_ENVS" value="true" />
36
+      <option name="TEST_SEARCH_SCOPE">
37
+        <value defaultName="singleModule" />
38
+      </option>
39
+      <patterns />
40
+    </configuration>
41
+    <configuration default="true" type="TestNG" factoryName="TestNG">
42
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
43
+      <option name="ALTERNATIVE_JRE_PATH" />
44
+      <option name="SUITE_NAME" />
45
+      <option name="PACKAGE_NAME" />
46
+      <option name="MAIN_CLASS_NAME" />
47
+      <option name="METHOD_NAME" />
48
+      <option name="GROUP_NAME" />
49
+      <option name="TEST_OBJECT" value="CLASS" />
50
+      <option name="VM_PARAMETERS" value="-ea" />
51
+      <option name="PARAMETERS" />
52
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
53
+      <option name="OUTPUT_DIRECTORY" />
54
+      <option name="PASS_PARENT_ENVS" value="true" />
55
+      <option name="TEST_SEARCH_SCOPE">
56
+        <value defaultName="singleModule" />
57
+      </option>
58
+      <option name="USE_DEFAULT_REPORTERS" value="false" />
59
+      <option name="PROPERTIES_FILE" />
60
+      <properties />
61
+      <listeners />
62
+    </configuration>
63
+    <recent_temporary>
64
+      <list>
65
+        <item itemvalue="Application.AccountApp" />
66
+      </list>
67
+    </recent_temporary>
68
+  </component>
69
+  <component name="masterDetails">
70
+    <states>
71
+      <state key="ProjectJDKs.UI">
72
+        <settings>
73
+          <last-edited>1.8</last-edited>
74
+          <splitter-proportions>
75
+            <option name="proportions">
76
+              <list>
77
+                <option value="0.2" />
78
+              </list>
79
+            </option>
80
+          </splitter-proportions>
81
+        </settings>
82
+      </state>
83
+    </states>
84
+  </component>
85
+</project>

+ 2
- 0
ormlitecore/ormlitecore.iml ファイルの表示

@@ -0,0 +1,2 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module type="JAVA_MODULE" version="4" />

+ 84
- 0
ormlitecore/pom.xml ファイルの表示

@@ -0,0 +1,84 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+
3
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
+  <modelVersion>4.0.0</modelVersion>
6
+
7
+  <groupId>com.j256.ormlite</groupId>
8
+  <artifactId>ormlite-core</artifactId>
9
+  <version>1.0-SNAPSHOT</version>
10
+
11
+  <name>ormlite-core</name>
12
+  <!-- FIXME change it to the project's website -->
13
+  <url>http://www.example.com</url>
14
+
15
+  <properties>
16
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17
+    <maven.compiler.source>1.7</maven.compiler.source>
18
+    <maven.compiler.target>1.7</maven.compiler.target>
19
+  </properties>
20
+
21
+  <dependencies>
22
+    <dependency>
23
+      <groupId>junit</groupId>
24
+      <artifactId>junit</artifactId>
25
+      <version>4.11</version>
26
+      <scope>test</scope>
27
+    </dependency>
28
+    <!-- https://mvnrepository.com/artifact/com.j256.ormlite/ormlite-core -->
29
+    <dependency>
30
+      <groupId>com.j256.ormlite</groupId>
31
+      <artifactId>ormlite-core</artifactId>
32
+      <version>4.48</version>
33
+    </dependency>
34
+
35
+    <!-- https://mvnrepository.com/artifact/com.j256.ormlite/ormlite-jdbc -->
36
+    <dependency>
37
+      <groupId>com.j256.ormlite</groupId>
38
+      <artifactId>ormlite-jdbc</artifactId>
39
+      <version>4.48</version>
40
+    </dependency>
41
+    <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
42
+    <dependency>
43
+      <groupId>mysql</groupId>
44
+      <artifactId>mysql-connector-java</artifactId>
45
+      <version>5.1.6</version>
46
+    </dependency>
47
+  </dependencies>
48
+
49
+  <build>
50
+    <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
51
+      <plugins>
52
+        <plugin>
53
+          <artifactId>maven-clean-plugin</artifactId>
54
+          <version>3.0.0</version>
55
+        </plugin>
56
+        <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
57
+        <plugin>
58
+          <artifactId>maven-resources-plugin</artifactId>
59
+          <version>3.0.2</version>
60
+        </plugin>
61
+        <plugin>
62
+          <artifactId>maven-compiler-plugin</artifactId>
63
+          <version>3.7.0</version>
64
+        </plugin>
65
+        <plugin>
66
+          <artifactId>maven-surefire-plugin</artifactId>
67
+          <version>2.20.1</version>
68
+        </plugin>
69
+        <plugin>
70
+          <artifactId>maven-jar-plugin</artifactId>
71
+          <version>3.0.2</version>
72
+        </plugin>
73
+        <plugin>
74
+          <artifactId>maven-install-plugin</artifactId>
75
+          <version>2.5.2</version>
76
+        </plugin>
77
+        <plugin>
78
+          <artifactId>maven-deploy-plugin</artifactId>
79
+          <version>2.8.2</version>
80
+        </plugin>
81
+      </plugins>
82
+    </pluginManagement>
83
+  </build>
84
+</project>

バイナリ
ormlitecore/src/.DS_Store ファイルの表示


バイナリ
ormlitecore/src/main/.DS_Store ファイルの表示


バイナリ
ormlitecore/src/main/java/.DS_Store ファイルの表示


+ 64
- 0
ormlitecore/src/main/java/Account.java ファイルの表示

@@ -0,0 +1,64 @@
1
+import com.j256.ormlite.field.DatabaseField;
2
+import com.j256.ormlite.table.DatabaseTable;
3
+
4
+@DatabaseTable(tableName = "account")
5
+public class Account {
6
+
7
+    public static final String NAME_FIELD_NAME = "name";
8
+    public static final String PASSWORD_FIELD_NAME = "password";
9
+
10
+    @DatabaseField(columnName = "id", generatedId = true)
11
+    private int id;
12
+
13
+    @DatabaseField(columnName = "name", canBeNull = false)
14
+    private String name;
15
+
16
+    @DatabaseField(columnName = "password")
17
+    private String password;
18
+
19
+    Account() {
20
+        // all persisted classes must define a no-arg constructor with at least package visibility
21
+    }
22
+
23
+    public Account(String name) {
24
+        this.name = name;
25
+    }
26
+
27
+    public Account(String name, String password) {
28
+        this.name = name;
29
+        this.password = password;
30
+    }
31
+
32
+    public int getId() {
33
+        return id;
34
+    }
35
+
36
+    public String getName() {
37
+        return name;
38
+    }
39
+
40
+    public void setName(String name) {
41
+        this.name = name;
42
+    }
43
+
44
+    public String getPassword() {
45
+        return password;
46
+    }
47
+
48
+    public void setPassword(String password) {
49
+        this.password = password;
50
+    }
51
+
52
+    @Override
53
+    public int hashCode() {
54
+        return name.hashCode();
55
+    }
56
+
57
+    @Override
58
+    public boolean equals(Object other) {
59
+        if (other == null || other.getClass() != getClass()) {
60
+            return false;
61
+        }
62
+        return name.equals(((Account) other).name);
63
+    }
64
+}

+ 65
- 0
ormlitecore/src/main/java/AccountApp.java ファイルの表示

@@ -0,0 +1,65 @@
1
+import com.j256.ormlite.dao.Dao;
2
+import com.j256.ormlite.dao.DaoManager;
3
+import com.j256.ormlite.jdbc.JdbcConnectionSource;
4
+import com.j256.ormlite.support.ConnectionSource;
5
+
6
+public class AccountApp {
7
+
8
+    // we are using a MySQl database
9
+    private final static String DATABASE_URL = "jdbc:mysql://localhost:3306/orm_lab?useUnicode=true";
10
+
11
+    private Dao<Account, Integer> accountDao;
12
+
13
+    public static void main(String[] args) throws Exception {
14
+        // turn our static method into an instance of Main
15
+        new AccountApp().doMain(args);
16
+    }
17
+
18
+    private void doMain(String[] args) throws Exception {
19
+        ConnectionSource connectionSource = null;
20
+        try {
21
+            // create our data-source for the database
22
+            connectionSource = new JdbcConnectionSource(DATABASE_URL, "root", "");
23
+            // setup our  DAOs
24
+            setupDao(connectionSource);
25
+            // read, write and delete some data
26
+            processData();
27
+
28
+            System.out.println("\n\nIt seems to have worked\n\n");
29
+        } finally {
30
+            // destroy the data source which should close underlying connections
31
+            if (connectionSource != null) {
32
+                connectionSource.close();
33
+            }
34
+        }
35
+    }
36
+
37
+    /**
38
+     * Read and write some example data.
39
+     */
40
+    private void processData() throws Exception {
41
+        // create an instance of Account
42
+        String name = "Jim Coakley";
43
+        Account account = new Account(name);
44
+
45
+        // persist the account object to the database
46
+        accountDao.create(account);
47
+        int id = account.getId();
48
+        System.out.println(id);
49
+        // assign a password
50
+        account.setPassword("_secret");
51
+        // update the database after changing the object
52
+        accountDao.update(account);
53
+        // delete the account
54
+        //accountDao.deleteById(id);
55
+    }
56
+
57
+    /**
58
+     * Setup our  DAOs
59
+     */
60
+    private void setupDao(ConnectionSource connectionSource) throws Exception {
61
+
62
+        accountDao = DaoManager.createDao(connectionSource, Account.class);
63
+
64
+    }
65
+}

バイナリ
ormlitecore/src/main/java/com/.DS_Store ファイルの表示


バイナリ
ormlitecore/src/main/java/com/j256/.DS_Store ファイルの表示


バイナリ
ormlitecore/src/main/java/com/j256/ormlite/.DS_Store ファイルの表示


+ 5
- 0
ormlitecore/src/test/java/AccountTest.java ファイルの表示

@@ -0,0 +1,5 @@
1
+import static org.junit.Assert.*;
2
+
3
+public class AccountTest {
4
+
5
+}

+ 7
- 0
ormlitecore/src/test/java/com/j256/ormlite/AccountTest.java ファイルの表示

@@ -0,0 +1,7 @@
1
+package com.j256.ormlite;
2
+
3
+import static org.junit.Assert.*;
4
+
5
+public class AccountTest {
6
+
7
+}

+ 20
- 0
ormlitecore/src/test/java/com/j256/ormlite/AppTest.java ファイルの表示

@@ -0,0 +1,20 @@
1
+package com.j256.ormlite;
2
+
3
+import static org.junit.Assert.assertTrue;
4
+
5
+import org.junit.Test;
6
+
7
+/**
8
+ * Unit test for simple App.
9
+ */
10
+public class AppTest 
11
+{
12
+    /**
13
+     * Rigorous Test :-)
14
+     */
15
+    @Test
16
+    public void shouldAnswerWithTrue()
17
+    {
18
+        assertTrue( true );
19
+    }
20
+}

バイナリ
ormlitecore/target/classes/Account.class ファイルの表示


バイナリ
ormlitecore/target/classes/AccountApp.class ファイルの表示


バイナリ
ormlitecore/target/test-classes/AccountTest.class ファイルの表示


バイナリ
ormlitecore/target/test-classes/com/j256/ormlite/AccountTest.class ファイルの表示


バイナリ
ormlitecore/target/test-classes/com/j256/ormlite/AppTest.class ファイルの表示