浏览代码

completed

Chad 6 年前
父节点
当前提交
2d558546c0

+ 9
- 0
.idea/ZCW-ORM-SimpleAccount.iml 查看文件

@@ -0,0 +1,9 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module type="JAVA_MODULE" version="4">
3
+  <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+    <exclude-output />
5
+    <content url="file://$MODULE_DIR$" />
6
+    <orderEntry type="inheritedJdk" />
7
+    <orderEntry type="sourceFolder" forTests="false" />
8
+  </component>
9
+</module>

+ 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="mavenProject" />
10
+      </profile>
11
+    </annotationProcessing>
12
+    <bytecodeTargetLevel>
13
+      <module name="mavenProject" target="1.8" />
14
+    </bytecodeTargetLevel>
15
+  </component>
16
+</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__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>

+ 14
- 0
.idea/misc.xml 查看文件

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

+ 9
- 0
.idea/modules.xml 查看文件

@@ -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$/.idea/ZCW-ORM-SimpleAccount.iml" filepath="$PROJECT_DIR$/.idea/ZCW-ORM-SimpleAccount.iml" />
6
+      <module fileurl="file://$PROJECT_DIR$/mavenProject/mavenProject.iml" filepath="$PROJECT_DIR$/mavenProject/mavenProject.iml" />
7
+    </modules>
8
+  </component>
9
+</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>

+ 509
- 0
.idea/workspace.xml 查看文件

@@ -0,0 +1,509 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="86756de2-4781-4192-8d2d-21a93f9f5756" name="Default" comment="">
5
+      <change afterPath="$PROJECT_DIR$/.idea/compiler.xml" afterDir="false" />
6
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__com_j256_ormlite_ormlite_core_4_48.xml" afterDir="false" />
7
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__com_j256_ormlite_ormlite_jdbc_4_48.xml" afterDir="false" />
8
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__mysql_mysql_connector_java_5_1_6.xml" afterDir="false" />
9
+      <change afterPath="$PROJECT_DIR$/.idea/vcs.xml" afterDir="false" />
10
+      <change afterPath="$PROJECT_DIR$/mavenProject/mavenProject.iml" afterDir="false" />
11
+      <change afterPath="$PROJECT_DIR$/mavenProject/pom.xml" afterDir="false" />
12
+      <change afterPath="$PROJECT_DIR$/mavenProject/src/main/java/Account.java" afterDir="false" />
13
+      <change afterPath="$PROJECT_DIR$/mavenProject/src/main/java/AccountApp.java" afterDir="false" />
14
+      <change afterPath="$PROJECT_DIR$/mavenProject/src/main/java/Console.java" afterDir="false" />
15
+    </list>
16
+    <ignored path="$PROJECT_DIR$/mavenProject/target/" />
17
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
18
+    <option name="TRACKING_ENABLED" value="true" />
19
+    <option name="SHOW_DIALOG" value="false" />
20
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
21
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
22
+    <option name="LAST_RESOLUTION" value="IGNORE" />
23
+  </component>
24
+  <component name="FileEditorManager">
25
+    <leaf>
26
+      <file leaf-file-name="pom.xml" pinned="false" current-in-tab="false">
27
+        <entry file="file://$PROJECT_DIR$/mavenProject/pom.xml">
28
+          <provider selected="true" editor-type-id="text-editor">
29
+            <state relative-caret-position="98">
30
+              <caret line="7" column="41" selection-start-line="7" selection-start-column="41" selection-end-line="7" selection-end-column="41" />
31
+            </state>
32
+          </provider>
33
+        </entry>
34
+      </file>
35
+      <file leaf-file-name="Account.java" pinned="false" current-in-tab="false">
36
+        <entry file="file://$PROJECT_DIR$/mavenProject/src/main/java/Account.java">
37
+          <provider selected="true" editor-type-id="text-editor">
38
+            <state relative-caret-position="-205">
39
+              <caret line="15" column="10" selection-start-line="15" selection-start-column="10" selection-end-line="15" selection-end-column="10" />
40
+              <folding>
41
+                <element signature="imports" expanded="true" />
42
+                <element signature="e#668#669#0" expanded="true" />
43
+                <element signature="e#700#701#0" expanded="true" />
44
+                <element signature="e#844#845#0" expanded="true" />
45
+                <element signature="e#869#870#0" expanded="true" />
46
+                <element signature="e#900#901#0" expanded="true" />
47
+                <element signature="e#927#928#0" expanded="true" />
48
+                <element signature="e#967#968#0" expanded="true" />
49
+                <element signature="e#999#1000#0" expanded="true" />
50
+                <element signature="e#1034#1035#0" expanded="true" />
51
+                <element signature="e#1065#1066#0" expanded="true" />
52
+                <element signature="e#1113#1114#0" expanded="true" />
53
+                <element signature="e#1153#1154#0" expanded="true" />
54
+                <element signature="e#1196#1197#0" expanded="true" />
55
+                <element signature="e#1234#1235#0" expanded="true" />
56
+              </folding>
57
+            </state>
58
+          </provider>
59
+        </entry>
60
+      </file>
61
+      <file leaf-file-name="AccountApp.java" pinned="false" current-in-tab="true">
62
+        <entry file="file://$PROJECT_DIR$/mavenProject/src/main/java/AccountApp.java">
63
+          <provider selected="true" editor-type-id="text-editor">
64
+            <state relative-caret-position="726">
65
+              <caret line="76" column="97" lean-forward="true" selection-start-line="76" selection-start-column="97" selection-end-line="76" selection-end-column="97" />
66
+              <folding>
67
+                <element signature="imports" expanded="true" />
68
+              </folding>
69
+            </state>
70
+          </provider>
71
+        </entry>
72
+      </file>
73
+      <file leaf-file-name="README.md" pinned="false" current-in-tab="false">
74
+        <entry file="file://$PROJECT_DIR$/README.md">
75
+          <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
76
+            <state split_layout="SPLIT">
77
+              <first_editor />
78
+              <second_editor />
79
+            </state>
80
+          </provider>
81
+        </entry>
82
+      </file>
83
+      <file leaf-file-name="Console.java" pinned="false" current-in-tab="false">
84
+        <entry file="file://$PROJECT_DIR$/mavenProject/src/main/java/Console.java">
85
+          <provider selected="true" editor-type-id="text-editor">
86
+            <state relative-caret-position="240">
87
+              <caret line="20" column="9" selection-start-line="20" selection-start-column="9" selection-end-line="20" selection-end-column="9" />
88
+            </state>
89
+          </provider>
90
+        </entry>
91
+      </file>
92
+    </leaf>
93
+  </component>
94
+  <component name="FileTemplateManagerImpl">
95
+    <option name="RECENT_TEMPLATES">
96
+      <list>
97
+        <option value="Class" />
98
+      </list>
99
+    </option>
100
+  </component>
101
+  <component name="Git.Settings">
102
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
103
+  </component>
104
+  <component name="IdeDocumentHistory">
105
+    <option name="CHANGED_PATHS">
106
+      <list>
107
+        <option value="$PROJECT_DIR$/main_project/main_project.iml" />
108
+        <option value="$PROJECT_DIR$/main_project/pom.xml" />
109
+        <option value="$PROJECT_DIR$/mavenProject/src/main/java/Account.java" />
110
+        <option value="$PROJECT_DIR$/mavenProject/src/main/java/Console.java" />
111
+        <option value="$PROJECT_DIR$/mavenProject/pom.xml" />
112
+        <option value="$PROJECT_DIR$/mavenProject/src/main/java/AccountApp.java" />
113
+      </list>
114
+    </option>
115
+  </component>
116
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
117
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
118
+  <component name="JsGulpfileManager">
119
+    <detection-done>true</detection-done>
120
+    <sorting>DEFINITION_ORDER</sorting>
121
+  </component>
122
+  <component name="MavenImportPreferences">
123
+    <option name="importingSettings">
124
+      <MavenImportingSettings>
125
+        <option name="importAutomatically" value="true" />
126
+      </MavenImportingSettings>
127
+    </option>
128
+  </component>
129
+  <component name="NodePackageJsonFileManager">
130
+    <packageJsonPaths />
131
+  </component>
132
+  <component name="ProjectFrameBounds">
133
+    <option name="x" value="-32" />
134
+    <option name="y" value="-899" />
135
+    <option name="width" value="1717" />
136
+    <option name="height" value="849" />
137
+  </component>
138
+  <component name="ProjectLevelVcsManager">
139
+    <ConfirmationsSetting value="2" id="Add" />
140
+  </component>
141
+  <component name="ProjectView">
142
+    <navigator proportions="" version="1">
143
+      <foldersAlwaysOnTop value="true" />
144
+    </navigator>
145
+    <panes>
146
+      <pane id="AndroidView" />
147
+      <pane id="PackagesPane" />
148
+      <pane id="Scope" />
149
+      <pane id="ProjectPane">
150
+        <subPane>
151
+          <expand>
152
+            <path>
153
+              <item name="ZCW-ORM-SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
154
+              <item name="ZCW-ORM-SimpleAccount" type="462c0819:PsiDirectoryNode" />
155
+            </path>
156
+            <path>
157
+              <item name="ZCW-ORM-SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
158
+              <item name="ZCW-ORM-SimpleAccount" type="462c0819:PsiDirectoryNode" />
159
+              <item name=".idea" type="462c0819:PsiDirectoryNode" />
160
+            </path>
161
+            <path>
162
+              <item name="ZCW-ORM-SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
163
+              <item name="ZCW-ORM-SimpleAccount" type="462c0819:PsiDirectoryNode" />
164
+              <item name="mavenProject" type="462c0819:PsiDirectoryNode" />
165
+            </path>
166
+            <path>
167
+              <item name="ZCW-ORM-SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
168
+              <item name="ZCW-ORM-SimpleAccount" type="462c0819:PsiDirectoryNode" />
169
+              <item name="mavenProject" type="462c0819:PsiDirectoryNode" />
170
+              <item name="src" type="462c0819:PsiDirectoryNode" />
171
+            </path>
172
+            <path>
173
+              <item name="ZCW-ORM-SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
174
+              <item name="ZCW-ORM-SimpleAccount" type="462c0819:PsiDirectoryNode" />
175
+              <item name="mavenProject" type="462c0819:PsiDirectoryNode" />
176
+              <item name="src" type="462c0819:PsiDirectoryNode" />
177
+              <item name="main" type="462c0819:PsiDirectoryNode" />
178
+            </path>
179
+            <path>
180
+              <item name="ZCW-ORM-SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
181
+              <item name="ZCW-ORM-SimpleAccount" type="462c0819:PsiDirectoryNode" />
182
+              <item name="mavenProject" type="462c0819:PsiDirectoryNode" />
183
+              <item name="src" type="462c0819:PsiDirectoryNode" />
184
+              <item name="main" type="462c0819:PsiDirectoryNode" />
185
+              <item name="java" type="462c0819:PsiDirectoryNode" />
186
+            </path>
187
+            <path>
188
+              <item name="ZCW-ORM-SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
189
+              <item name="ZCW-ORM-SimpleAccount" type="462c0819:PsiDirectoryNode" />
190
+              <item name="mavenProject" type="462c0819:PsiDirectoryNode" />
191
+              <item name="src" type="462c0819:PsiDirectoryNode" />
192
+              <item name="test" type="462c0819:PsiDirectoryNode" />
193
+            </path>
194
+            <path>
195
+              <item name="ZCW-ORM-SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
196
+              <item name="External Libraries" type="cb654da1:ExternalLibrariesNode" />
197
+            </path>
198
+          </expand>
199
+          <select />
200
+        </subPane>
201
+      </pane>
202
+    </panes>
203
+  </component>
204
+  <component name="PropertiesComponent">
205
+    <property name="WebServerToolWindowFactoryState" value="false" />
206
+    <property name="android.sdk.path" value="$USER_HOME$/Library/Android/sdk" />
207
+    <property name="aspect.path.notification.shown" value="true" />
208
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
209
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
210
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
211
+    <property name="project.structure.last.edited" value="Modules" />
212
+    <property name="project.structure.proportion" value="0.15" />
213
+    <property name="project.structure.side.proportion" value="0.2" />
214
+    <property name="settings.editor.selected.configurable" value="reference.projectsettings.compiler.javacompiler" />
215
+  </component>
216
+  <component name="RunDashboard">
217
+    <option name="ruleStates">
218
+      <list>
219
+        <RuleState>
220
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
221
+        </RuleState>
222
+        <RuleState>
223
+          <option name="name" value="StatusDashboardGroupingRule" />
224
+        </RuleState>
225
+      </list>
226
+    </option>
227
+  </component>
228
+  <component name="RunManager">
229
+    <configuration name="AccountApp" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
230
+      <option name="MAIN_CLASS_NAME" value="AccountApp" />
231
+      <module name="mavenProject" />
232
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
233
+    </configuration>
234
+    <configuration default="true" type="Application" factoryName="Application">
235
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
236
+    </configuration>
237
+    <configuration default="true" type="JUnit" factoryName="JUnit">
238
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
239
+      <option name="ALTERNATIVE_JRE_PATH" />
240
+      <option name="PACKAGE_NAME" />
241
+      <option name="MAIN_CLASS_NAME" />
242
+      <option name="METHOD_NAME" />
243
+      <option name="TEST_OBJECT" value="class" />
244
+      <option name="VM_PARAMETERS" value="-ea" />
245
+      <option name="PARAMETERS" />
246
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
247
+      <option name="PASS_PARENT_ENVS" value="true" />
248
+      <option name="TEST_SEARCH_SCOPE">
249
+        <value defaultName="singleModule" />
250
+      </option>
251
+      <patterns />
252
+    </configuration>
253
+    <configuration default="true" type="TestNG" factoryName="TestNG">
254
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
255
+      <option name="ALTERNATIVE_JRE_PATH" />
256
+      <option name="SUITE_NAME" />
257
+      <option name="PACKAGE_NAME" />
258
+      <option name="MAIN_CLASS_NAME" />
259
+      <option name="METHOD_NAME" />
260
+      <option name="GROUP_NAME" />
261
+      <option name="TEST_OBJECT" value="CLASS" />
262
+      <option name="VM_PARAMETERS" value="-ea" />
263
+      <option name="PARAMETERS" />
264
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
265
+      <option name="OUTPUT_DIRECTORY" />
266
+      <option name="PASS_PARENT_ENVS" value="true" />
267
+      <option name="TEST_SEARCH_SCOPE">
268
+        <value defaultName="singleModule" />
269
+      </option>
270
+      <option name="USE_DEFAULT_REPORTERS" value="false" />
271
+      <option name="PROPERTIES_FILE" />
272
+      <properties />
273
+      <listeners />
274
+    </configuration>
275
+    <recent_temporary>
276
+      <list>
277
+        <item itemvalue="Application.AccountApp" />
278
+      </list>
279
+    </recent_temporary>
280
+  </component>
281
+  <component name="SvnConfiguration">
282
+    <configuration />
283
+  </component>
284
+  <component name="TaskManager">
285
+    <task active="true" id="Default" summary="Default task">
286
+      <changelist id="86756de2-4781-4192-8d2d-21a93f9f5756" name="Default" comment="" />
287
+      <created>1529241424521</created>
288
+      <option name="number" value="Default" />
289
+      <option name="presentableId" value="Default" />
290
+      <updated>1529241424521</updated>
291
+      <workItem from="1529241426064" duration="807000" />
292
+      <workItem from="1529243525544" duration="7910000" />
293
+    </task>
294
+    <servers />
295
+  </component>
296
+  <component name="TimeTrackingManager">
297
+    <option name="totallyTimeSpent" value="8717000" />
298
+  </component>
299
+  <component name="ToolWindowManager">
300
+    <frame x="-32" y="-899" width="1717" height="849" extended-state="0" />
301
+    <layout>
302
+      <window_info anchor="right" id="Palette" order="3" />
303
+      <window_info anchor="bottom" id="TODO" order="6" />
304
+      <window_info anchor="bottom" id="Messages" weight="0.32903227" />
305
+      <window_info anchor="right" id="Palette&#9;" order="3" />
306
+      <window_info id="Image Layers" order="2" />
307
+      <window_info anchor="right" id="Capture Analysis" order="3" />
308
+      <window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
309
+      <window_info anchor="right" id="Maven Projects" order="3" />
310
+      <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
311
+      <window_info anchor="bottom" id="Version Control" order="7" />
312
+      <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.32903227" />
313
+      <window_info anchor="bottom" id="Terminal" order="7" />
314
+      <window_info id="Capture Tool" order="2" />
315
+      <window_info id="Designer" order="2" />
316
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.2498544" />
317
+      <window_info anchor="right" id="Database" order="3" />
318
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
319
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
320
+      <window_info id="UI Designer" order="2" />
321
+      <window_info anchor="right" id="Theme Preview" order="3" />
322
+      <window_info id="Favorites" order="2" side_tool="true" />
323
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
324
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
325
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
326
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
327
+      <window_info anchor="bottom" id="Message" order="0" />
328
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
329
+      <window_info anchor="bottom" id="Find" order="1" />
330
+    </layout>
331
+  </component>
332
+  <component name="TypeScriptGeneratedFilesManager">
333
+    <option name="version" value="1" />
334
+  </component>
335
+  <component name="VcsContentAnnotationSettings">
336
+    <option name="myLimit" value="2678400000" />
337
+  </component>
338
+  <component name="editorHistoryManager">
339
+    <entry file="file://$PROJECT_DIR$/main_project/main_project.iml">
340
+      <provider selected="true" editor-type-id="text-editor">
341
+        <state relative-caret-position="150">
342
+          <caret line="10" selection-start-line="10" selection-end-line="10" />
343
+        </state>
344
+      </provider>
345
+    </entry>
346
+    <entry file="file://$PROJECT_DIR$/main_project/pom.xml">
347
+      <provider selected="true" editor-type-id="text-editor">
348
+        <state relative-caret-position="225">
349
+          <caret line="15" column="8" lean-forward="true" selection-start-line="15" selection-start-column="8" selection-end-line="15" selection-end-column="8" />
350
+        </state>
351
+      </provider>
352
+    </entry>
353
+    <entry file="file://$PROJECT_DIR$/.idea/compiler.xml">
354
+      <provider selected="true" editor-type-id="text-editor" />
355
+    </entry>
356
+    <entry file="file://$PROJECT_DIR$/.idea/modules.xml">
357
+      <provider selected="true" editor-type-id="text-editor" />
358
+    </entry>
359
+    <entry file="file://$PROJECT_DIR$/.idea/ZCW-ORM-SimpleAccount.iml">
360
+      <provider selected="true" editor-type-id="text-editor">
361
+        <state relative-caret-position="60">
362
+          <caret line="4" column="25" lean-forward="true" selection-start-line="4" selection-start-column="25" selection-end-line="4" selection-end-column="25" />
363
+        </state>
364
+      </provider>
365
+    </entry>
366
+    <entry file="file://$PROJECT_DIR$/.idea/misc.xml">
367
+      <provider selected="true" editor-type-id="text-editor" />
368
+    </entry>
369
+    <entry file="file://$PROJECT_DIR$/mavenProject/src/main/java/Console.java">
370
+      <provider selected="true" editor-type-id="text-editor">
371
+        <state relative-caret-position="240">
372
+          <caret line="20" column="9" selection-start-line="20" selection-start-column="9" selection-end-line="20" selection-end-column="9" />
373
+        </state>
374
+      </provider>
375
+    </entry>
376
+    <entry file="file://$PROJECT_DIR$/mavenProject/src/main/java/Account.java">
377
+      <provider selected="true" editor-type-id="text-editor">
378
+        <state relative-caret-position="-205">
379
+          <caret line="15" column="10" selection-start-line="15" selection-start-column="10" selection-end-line="15" selection-end-column="10" />
380
+          <folding>
381
+            <element signature="imports" expanded="true" />
382
+            <element signature="e#668#669#0" expanded="true" />
383
+            <element signature="e#700#701#0" expanded="true" />
384
+            <element signature="e#844#845#0" expanded="true" />
385
+            <element signature="e#869#870#0" expanded="true" />
386
+            <element signature="e#900#901#0" expanded="true" />
387
+            <element signature="e#927#928#0" expanded="true" />
388
+            <element signature="e#967#968#0" expanded="true" />
389
+            <element signature="e#999#1000#0" expanded="true" />
390
+            <element signature="e#1034#1035#0" expanded="true" />
391
+            <element signature="e#1065#1066#0" expanded="true" />
392
+            <element signature="e#1113#1114#0" expanded="true" />
393
+            <element signature="e#1153#1154#0" expanded="true" />
394
+            <element signature="e#1196#1197#0" expanded="true" />
395
+            <element signature="e#1234#1235#0" expanded="true" />
396
+          </folding>
397
+        </state>
398
+      </provider>
399
+    </entry>
400
+    <entry file="jar:///Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home/lib/src.zip!/java.base/java/util/function/Consumer.java">
401
+      <provider selected="true" editor-type-id="text-editor">
402
+        <state relative-caret-position="165">
403
+          <caret line="48" column="9" selection-start-line="48" selection-start-column="9" selection-end-line="48" selection-end-column="9" />
404
+        </state>
405
+      </provider>
406
+    </entry>
407
+    <entry file="file://$PROJECT_DIR$/README.md">
408
+      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
409
+        <state split_layout="SPLIT">
410
+          <first_editor />
411
+          <second_editor />
412
+        </state>
413
+      </provider>
414
+    </entry>
415
+    <entry file="file://$PROJECT_DIR$/mavenProject/pom.xml">
416
+      <provider selected="true" editor-type-id="text-editor">
417
+        <state relative-caret-position="98">
418
+          <caret line="7" column="41" selection-start-line="7" selection-start-column="41" selection-end-line="7" selection-end-column="41" />
419
+        </state>
420
+      </provider>
421
+    </entry>
422
+    <entry file="file://$PROJECT_DIR$/mavenProject/src/main/java/AccountApp.java">
423
+      <provider selected="true" editor-type-id="text-editor">
424
+        <state relative-caret-position="726">
425
+          <caret line="76" column="97" lean-forward="true" selection-start-line="76" selection-start-column="97" selection-end-line="76" selection-end-column="97" />
426
+          <folding>
427
+            <element signature="imports" expanded="true" />
428
+          </folding>
429
+        </state>
430
+      </provider>
431
+    </entry>
432
+  </component>
433
+  <component name="masterDetails">
434
+    <states>
435
+      <state key="ArtifactsStructureConfigurable.UI">
436
+        <settings>
437
+          <artifact-editor />
438
+          <splitter-proportions>
439
+            <option name="proportions">
440
+              <list>
441
+                <option value="0.2" />
442
+              </list>
443
+            </option>
444
+          </splitter-proportions>
445
+        </settings>
446
+      </state>
447
+      <state key="FacetStructureConfigurable.UI">
448
+        <settings>
449
+          <last-edited>No facets are configured</last-edited>
450
+          <splitter-proportions>
451
+            <option name="proportions">
452
+              <list>
453
+                <option value="0.2" />
454
+              </list>
455
+            </option>
456
+          </splitter-proportions>
457
+        </settings>
458
+      </state>
459
+      <state key="GlobalLibrariesConfigurable.UI">
460
+        <settings>
461
+          <splitter-proportions>
462
+            <option name="proportions">
463
+              <list>
464
+                <option value="0.2" />
465
+              </list>
466
+            </option>
467
+          </splitter-proportions>
468
+        </settings>
469
+      </state>
470
+      <state key="JdkListConfigurable.UI">
471
+        <settings>
472
+          <last-edited>10</last-edited>
473
+          <splitter-proportions>
474
+            <option name="proportions">
475
+              <list>
476
+                <option value="0.2" />
477
+              </list>
478
+            </option>
479
+          </splitter-proportions>
480
+        </settings>
481
+      </state>
482
+      <state key="ModuleStructureConfigurable.UI">
483
+        <settings>
484
+          <last-edited>mavenProject</last-edited>
485
+          <splitter-proportions>
486
+            <option name="proportions">
487
+              <list>
488
+                <option value="0.2" />
489
+                <option value="0.6" />
490
+              </list>
491
+            </option>
492
+          </splitter-proportions>
493
+        </settings>
494
+      </state>
495
+      <state key="ProjectLibrariesConfigurable.UI">
496
+        <settings>
497
+          <last-edited>Maven: com.j256.ormlite:ormlite-core:4.48</last-edited>
498
+          <splitter-proportions>
499
+            <option name="proportions">
500
+              <list>
501
+                <option value="0.2" />
502
+              </list>
503
+            </option>
504
+          </splitter-proportions>
505
+        </settings>
506
+      </state>
507
+    </states>
508
+  </component>
509
+</project>

+ 18
- 0
mavenProject/mavenProject.iml 查看文件

@@ -0,0 +1,18 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3
+  <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
4
+    <output url="file://$MODULE_DIR$/target/classes" />
5
+    <output-test url="file://$MODULE_DIR$/target/test-classes" />
6
+    <content url="file://$MODULE_DIR$">
7
+      <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
8
+      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
9
+      <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
10
+      <excludeFolder url="file://$MODULE_DIR$/target" />
11
+    </content>
12
+    <orderEntry type="inheritedJdk" />
13
+    <orderEntry type="sourceFolder" forTests="false" />
14
+    <orderEntry type="library" name="Maven: com.j256.ormlite:ormlite-core:4.48" level="project" />
15
+    <orderEntry type="library" name="Maven: com.j256.ormlite:ormlite-jdbc:4.48" level="project" />
16
+    <orderEntry type="library" name="Maven: mysql:mysql-connector-java:5.1.6" level="project" />
17
+  </component>
18
+</module>

+ 45
- 0
mavenProject/pom.xml 查看文件

@@ -0,0 +1,45 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project xmlns="http://maven.apache.org/POM/4.0.0"
3
+         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>Maven</groupId>
8
+    <artifactId>mavenProject</artifactId>
9
+    <version>1.0-SNAPSHOT</version>
10
+    <build>
11
+        <plugins>
12
+            <plugin>
13
+                <groupId>org.apache.maven.plugins</groupId>
14
+                <artifactId>maven-compiler-plugin</artifactId>
15
+                <configuration>
16
+                    <source>1.8</source>
17
+                    <target>1.8</target>
18
+                </configuration>
19
+            </plugin>
20
+        </plugins>
21
+    </build>
22
+    <dependencies>
23
+    <!-- https://mvnrepository.com/artifact/com.j256.ormlite/ormlite-core -->
24
+    <dependency>
25
+        <groupId>com.j256.ormlite</groupId>
26
+        <artifactId>ormlite-core</artifactId>
27
+        <version>4.48</version>
28
+    </dependency>
29
+
30
+
31
+    <!-- https://mvnrepository.com/artifact/com.j256.ormlite/ormlite-jdbc -->
32
+    <dependency>
33
+        <groupId>com.j256.ormlite</groupId>
34
+        <artifactId>ormlite-jdbc</artifactId>
35
+        <version>4.48</version>
36
+    </dependency>
37
+
38
+    <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
39
+    <dependency>
40
+        <groupId>mysql</groupId>
41
+        <artifactId>mysql-connector-java</artifactId>
42
+        <version>5.1.6</version>
43
+    </dependency>
44
+    </dependencies>
45
+</project>

+ 64
- 0
mavenProject/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
+}

+ 102
- 0
mavenProject/src/main/java/AccountApp.java 查看文件

@@ -0,0 +1,102 @@
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
+    // we are using a MySQl database
8
+    private final static String DATABASE_URL = "jdbc:mysql://localhost:3306/orm_lab?useUnicode=true";
9
+    Console console = new Console();
10
+    private Dao<Account, Integer> accountDao;
11
+
12
+    public static void main(String[] args) throws Exception {
13
+        // turn our static method into an instance of Main
14
+        new AccountApp().doMain(args);
15
+    }
16
+
17
+    private void doMain(String[] args) throws Exception {
18
+        ConnectionSource connectionSource = null;
19
+        try {
20
+            // create our data-source for the database
21
+            connectionSource = new JdbcConnectionSource(DATABASE_URL, "root", "");
22
+            // setup our  DAOs
23
+            setupDao(connectionSource);
24
+            // read, write and delete some data
25
+            processData();
26
+
27
+            System.out.println("\n\nIt seems to have worked\n\n");
28
+        } finally {
29
+            // destroy the data source which should close underlying connections
30
+            if (connectionSource != null) {
31
+                connectionSource.close();
32
+            }
33
+        }
34
+    }
35
+
36
+    /**
37
+     * Read and write some example data.
38
+     */
39
+    private void processData() throws Exception {
40
+        Account account;
41
+        boolean running = true;
42
+        while (running) {
43
+            switch (console.getIntInput("What would you like to do?\n1.Create a Client\n2.Look Up All Clients\n3.Update a Client\n4.Delete an Client\n5.exit")) {
44
+                case (1):
45
+                    // create an instance of Account
46
+                    String name = console.getStringInput("Enter a client name");
47
+                    account = new Account(name);
48
+
49
+                    // persist the account object to the database
50
+                    accountDao.create(account);
51
+                    int id = account.getId();
52
+                    console.println(id + "");
53
+                    // assign a password
54
+                    account.setPassword(console.getStringInput("Enter a client password"));
55
+                    // update the database after changing the object
56
+                    accountDao.update(account);
57
+                    break;
58
+                case (2):
59
+                    //read
60
+                    accountDao.forEach(acc -> console.println("ID= " + acc.getId() + "\nName= " + acc.getName() + "\nPassword= " + acc.getPassword()));
61
+                    break;
62
+                case (3):
63
+                    //update
64
+                    account = accountDao.queryForId(console.getIntInput("which user ID would you like to update?"));
65
+                    switch (console.getIntInput("What would you like to update?\n1.Name\n2.Password\n3.Both")) {
66
+                        case (1):
67
+                            account.setName(console.getStringInput("Enter new client name"));
68
+                            break;
69
+                        case (2):
70
+                            account.setPassword(console.getStringInput("Enter new password"));
71
+                            break;
72
+                        case (3):
73
+                            account.setName(console.getStringInput("Enter new client name"));
74
+                            account.setPassword(console.getStringInput("Enter new password"));
75
+                            break;
76
+                        default:
77
+                            console.println("Please enter a number associated with your choice");
78
+                    }
79
+                    accountDao.update(account);
80
+                    break;
81
+                case (4):
82
+                    // delete the account
83
+                    accountDao.deleteById(console.getIntInput("Which Id would you like to delete?"));
84
+                    break;
85
+                case (5):
86
+                    running = false;
87
+                    break;
88
+                default:
89
+                    console.println("Please enter a number associated with your choice");
90
+            }
91
+        }
92
+    }
93
+
94
+    /**
95
+     * Setup our  DAOs
96
+     */
97
+    private void setupDao(ConnectionSource connectionSource) throws Exception {
98
+
99
+        accountDao = DaoManager.createDao(connectionSource, Account.class);
100
+
101
+    }
102
+}

+ 74
- 0
mavenProject/src/main/java/Console.java 查看文件

@@ -0,0 +1,74 @@
1
+import java.util.Scanner;
2
+
3
+public class Console {
4
+
5
+    public void print(String output, Object... args) {
6
+        System.out.printf(output, args);
7
+    }
8
+
9
+    public void println(String output, Object... args) {
10
+        print(output + "\n", args);
11
+    }
12
+
13
+    public String getStringInput(String prompt) {
14
+        Scanner scanner = new Scanner(System.in);
15
+        println(prompt);
16
+        String userInput = scanner.nextLine();
17
+        String userInput2 = userInput.toLowerCase();
18
+        if (userInput2.equals("leave")) {
19
+            System.out.print("Please reinitialize the program");
20
+            System.exit(0);
21
+        }
22
+        return userInput2;
23
+    }
24
+
25
+
26
+    public Integer getIntInput(String prompt) {
27
+        int b = 0;
28
+        boolean good = false;
29
+        println(prompt);
30
+        while (good == false) {
31
+            Scanner scannerB = new Scanner(System.in);
32
+            if (scannerB.hasNextInt()) {
33
+                b = scannerB.nextInt();
34
+                good = true;
35
+            } else {
36
+                System.out.print("Invalid input please start over\n");
37
+            }
38
+        }
39
+        return b;
40
+    }
41
+
42
+    public Double getDoubleInput(String prompt) {
43
+        double b = 0;
44
+        boolean good = false;
45
+        println(prompt);
46
+        while (good == false) {
47
+            Scanner scannerB = new Scanner(System.in);
48
+            if (scannerB.hasNextDouble()) {
49
+                b = scannerB.nextDouble();
50
+                good = true;
51
+            } else {
52
+                System.out.print("Invalid input please start over\n");
53
+            }
54
+        }
55
+        return b;
56
+    }
57
+
58
+    public String yesOrNo(String prompt) {
59
+        boolean good = false;
60
+        String correct = "";
61
+        while (good == false) {
62
+            String answer = getStringInput(prompt);
63
+            if (answer.equalsIgnoreCase("yes") || answer.equalsIgnoreCase("no")) {
64
+                good = true;
65
+                correct = answer;
66
+            } else {
67
+                println("what was that? Please say yes or no.");
68
+            }
69
+        }
70
+        return correct;
71
+    }
72
+}
73
+
74
+

二进制
mavenProject/target/classes/Account.class 查看文件


二进制
mavenProject/target/classes/AccountApp.class 查看文件


二进制
mavenProject/target/classes/Console.class 查看文件