Browse Source

submit

i
iwq
iwq
wq
Navya Sanal 6 years ago
parent
commit
25c549af3b

+ 9
- 0
.idea/ZCW-ORM-SimpleAccount.iml View File

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

+ 10
- 0
.idea/misc.xml View File

@@ -0,0 +1,10 @@
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
+</project>

+ 8
- 0
.idea/modules.xml View File

@@ -0,0 +1,8 @@
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
+    </modules>
7
+  </component>
8
+</project>

+ 6
- 0
.idea/vcs.xml View File

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

+ 473
- 0
.idea/workspace.xml View File

@@ -0,0 +1,473 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="7895e0d7-67a8-4bbf-9d5e-282f591ca9d2" name="Default" comment="">
5
+      <change afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
6
+      <change afterPath="$PROJECT_DIR$/pom.xml" afterDir="false" />
7
+    </list>
8
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
9
+    <option name="TRACKING_ENABLED" value="true" />
10
+    <option name="SHOW_DIALOG" value="false" />
11
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
12
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
13
+    <option name="LAST_RESOLUTION" value="IGNORE" />
14
+  </component>
15
+  <component name="FileEditorManager">
16
+    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
17
+      <file leaf-file-name="ZCW-ORM-SimpleAccount.iml" pinned="false" current-in-tab="false">
18
+        <entry file="file://$PROJECT_DIR$/.idea/ZCW-ORM-SimpleAccount.iml">
19
+          <provider selected="true" editor-type-id="text-editor">
20
+            <state relative-caret-position="120">
21
+              <caret line="8" column="9" selection-start-line="8" selection-start-column="9" selection-end-line="8" selection-end-column="9" />
22
+            </state>
23
+          </provider>
24
+        </entry>
25
+      </file>
26
+      <file leaf-file-name="pom.xml" pinned="false" current-in-tab="true">
27
+        <entry file="file://$PROJECT_DIR$/pom.xml">
28
+          <provider selected="true" editor-type-id="text-editor">
29
+            <state relative-caret-position="525">
30
+              <caret line="35" selection-start-line="35" selection-end-line="35" />
31
+            </state>
32
+          </provider>
33
+        </entry>
34
+      </file>
35
+      <file leaf-file-name="README.md" pinned="false" current-in-tab="false">
36
+        <entry file="file://$PROJECT_DIR$/README.md">
37
+          <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
38
+            <state split_layout="SPLIT">
39
+              <first_editor />
40
+              <second_editor />
41
+            </state>
42
+          </provider>
43
+        </entry>
44
+      </file>
45
+      <file leaf-file-name="workspace.xml" pinned="false" current-in-tab="false">
46
+        <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
47
+          <provider selected="true" editor-type-id="text-editor" />
48
+        </entry>
49
+      </file>
50
+      <file leaf-file-name="modules.xml" pinned="false" current-in-tab="false">
51
+        <entry file="file://$PROJECT_DIR$/.idea/modules.xml">
52
+          <provider selected="true" editor-type-id="text-editor" />
53
+        </entry>
54
+      </file>
55
+    </leaf>
56
+  </component>
57
+  <component name="Git.Settings">
58
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
59
+  </component>
60
+  <component name="IdeDocumentHistory">
61
+    <option name="CHANGED_PATHS">
62
+      <list>
63
+        <option value="$PROJECT_DIR$/pom.xml" />
64
+      </list>
65
+    </option>
66
+  </component>
67
+  <component name="ProjectFrameBounds" extendedState="6">
68
+    <option name="y" value="23" />
69
+    <option name="width" value="1440" />
70
+    <option name="height" value="815" />
71
+  </component>
72
+  <component name="ProjectView">
73
+    <navigator proportions="" version="1">
74
+      <foldersAlwaysOnTop value="true" />
75
+    </navigator>
76
+    <panes>
77
+      <pane id="Scope" />
78
+      <pane id="AndroidView" />
79
+      <pane id="ProjectPane">
80
+        <subPane>
81
+          <expand>
82
+            <path>
83
+              <item name="ZCW-ORM-SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
84
+              <item name="ZCW-ORM-SimpleAccount" type="462c0819:PsiDirectoryNode" />
85
+            </path>
86
+            <path>
87
+              <item name="ZCW-ORM-SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
88
+              <item name="ZCW-ORM-SimpleAccount" type="462c0819:PsiDirectoryNode" />
89
+              <item name=".idea" type="462c0819:PsiDirectoryNode" />
90
+            </path>
91
+            <path>
92
+              <item name="ZCW-ORM-SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
93
+              <item name="ZCW-ORM-SimpleAccount" type="462c0819:PsiDirectoryNode" />
94
+              <item name="src" type="462c0819:PsiDirectoryNode" />
95
+            </path>
96
+            <path>
97
+              <item name="ZCW-ORM-SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
98
+              <item name="ZCW-ORM-SimpleAccount" type="462c0819:PsiDirectoryNode" />
99
+              <item name="src" type="462c0819:PsiDirectoryNode" />
100
+              <item name="main" type="462c0819:PsiDirectoryNode" />
101
+            </path>
102
+            <path>
103
+              <item name="ZCW-ORM-SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
104
+              <item name="ZCW-ORM-SimpleAccount" type="462c0819:PsiDirectoryNode" />
105
+              <item name="src" type="462c0819:PsiDirectoryNode" />
106
+              <item name="main" type="462c0819:PsiDirectoryNode" />
107
+              <item name="java" type="462c0819:PsiDirectoryNode" />
108
+            </path>
109
+            <path>
110
+              <item name="ZCW-ORM-SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
111
+              <item name="ZCW-ORM-SimpleAccount" type="462c0819:PsiDirectoryNode" />
112
+              <item name="src" type="462c0819:PsiDirectoryNode" />
113
+              <item name="test" type="462c0819:PsiDirectoryNode" />
114
+            </path>
115
+            <path>
116
+              <item name="ZCW-ORM-SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
117
+              <item name="ZCW-ORM-SimpleAccount" type="462c0819:PsiDirectoryNode" />
118
+              <item name="target" type="462c0819:PsiDirectoryNode" />
119
+            </path>
120
+          </expand>
121
+          <select />
122
+        </subPane>
123
+      </pane>
124
+      <pane id="PackagesPane" />
125
+    </panes>
126
+  </component>
127
+  <component name="PropertiesComponent">
128
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
129
+    <property name="project.structure.last.edited" value="Modules" />
130
+    <property name="project.structure.proportion" value="0.0" />
131
+    <property name="project.structure.side.proportion" value="0.2" />
132
+    <property name="settings.editor.selected.configurable" value="terminal" />
133
+  </component>
134
+  <component name="RunDashboard">
135
+    <option name="ruleStates">
136
+      <list>
137
+        <RuleState>
138
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
139
+        </RuleState>
140
+        <RuleState>
141
+          <option name="name" value="StatusDashboardGroupingRule" />
142
+        </RuleState>
143
+      </list>
144
+    </option>
145
+  </component>
146
+  <component name="RunManager">
147
+    <configuration default="true" type="Application" factoryName="Application">
148
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
149
+    </configuration>
150
+    <configuration default="true" type="JUnit" factoryName="JUnit">
151
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
152
+      <option name="ALTERNATIVE_JRE_PATH" />
153
+      <option name="PACKAGE_NAME" />
154
+      <option name="MAIN_CLASS_NAME" />
155
+      <option name="METHOD_NAME" />
156
+      <option name="TEST_OBJECT" value="class" />
157
+      <option name="VM_PARAMETERS" value="-ea" />
158
+      <option name="PARAMETERS" />
159
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
160
+      <option name="PASS_PARENT_ENVS" value="true" />
161
+      <option name="TEST_SEARCH_SCOPE">
162
+        <value defaultName="singleModule" />
163
+      </option>
164
+      <patterns />
165
+    </configuration>
166
+    <configuration default="true" type="TestNG" factoryName="TestNG">
167
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
168
+      <option name="ALTERNATIVE_JRE_PATH" />
169
+      <option name="SUITE_NAME" />
170
+      <option name="PACKAGE_NAME" />
171
+      <option name="MAIN_CLASS_NAME" />
172
+      <option name="METHOD_NAME" />
173
+      <option name="GROUP_NAME" />
174
+      <option name="TEST_OBJECT" value="CLASS" />
175
+      <option name="VM_PARAMETERS" value="-ea" />
176
+      <option name="PARAMETERS" />
177
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
178
+      <option name="OUTPUT_DIRECTORY" />
179
+      <option name="PASS_PARENT_ENVS" value="true" />
180
+      <option name="TEST_SEARCH_SCOPE">
181
+        <value defaultName="singleModule" />
182
+      </option>
183
+      <option name="USE_DEFAULT_REPORTERS" value="false" />
184
+      <option name="PROPERTIES_FILE" />
185
+      <properties />
186
+      <listeners />
187
+    </configuration>
188
+  </component>
189
+  <component name="SvnConfiguration">
190
+    <configuration />
191
+  </component>
192
+  <component name="TaskManager">
193
+    <task active="true" id="Default" summary="Default task">
194
+      <changelist id="7895e0d7-67a8-4bbf-9d5e-282f591ca9d2" name="Default" comment="" />
195
+      <created>1528967689345</created>
196
+      <option name="number" value="Default" />
197
+      <option name="presentableId" value="Default" />
198
+      <updated>1528967689345</updated>
199
+    </task>
200
+    <servers />
201
+  </component>
202
+  <component name="ToolWindowManager">
203
+    <frame x="0" y="23" width="1440" height="815" extended-state="6" />
204
+    <layout>
205
+      <window_info anchor="right" id="Palette" order="3" />
206
+      <window_info anchor="bottom" id="TODO" order="6" />
207
+      <window_info anchor="right" id="Palette&#9;" order="3" />
208
+      <window_info id="Image Layers" order="2" />
209
+      <window_info anchor="right" id="Capture Analysis" order="3" />
210
+      <window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
211
+      <window_info anchor="right" id="Maven Projects" order="3" />
212
+      <window_info anchor="bottom" id="Run" order="2" />
213
+      <window_info anchor="bottom" id="Version Control" order="7" />
214
+      <window_info anchor="bottom" id="Terminal" order="7" />
215
+      <window_info id="Capture Tool" order="2" />
216
+      <window_info id="Designer" order="2" />
217
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.26752505" />
218
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
219
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
220
+      <window_info id="UI Designer" order="2" />
221
+      <window_info anchor="right" id="Theme Preview" order="3" />
222
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
223
+      <window_info id="Favorites" order="2" side_tool="true" />
224
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
225
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
226
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
227
+      <window_info anchor="bottom" id="Message" order="0" />
228
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
229
+      <window_info anchor="bottom" id="Find" order="1" />
230
+    </layout>
231
+  </component>
232
+  <component name="VcsContentAnnotationSettings">
233
+    <option name="myLimit" value="2678400000" />
234
+  </component>
235
+  <component name="editorHistoryManager">
236
+    <entry file="file://$PROJECT_DIR$/.idea/ZCW-ORM-SimpleAccount.iml">
237
+      <provider selected="true" editor-type-id="text-editor">
238
+        <state relative-caret-position="120">
239
+          <caret line="8" column="9" selection-start-line="8" selection-start-column="9" selection-end-line="8" selection-end-column="9" />
240
+        </state>
241
+      </provider>
242
+    </entry>
243
+    <entry file="file://$PROJECT_DIR$/README.md">
244
+      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
245
+        <state split_layout="SPLIT">
246
+          <first_editor />
247
+          <second_editor />
248
+        </state>
249
+      </provider>
250
+    </entry>
251
+    <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
252
+      <provider selected="true" editor-type-id="text-editor" />
253
+    </entry>
254
+    <entry file="file://$PROJECT_DIR$/.idea/modules.xml">
255
+      <provider selected="true" editor-type-id="text-editor" />
256
+    </entry>
257
+    <entry file="file://$PROJECT_DIR$/pom.xml">
258
+      <provider selected="true" editor-type-id="text-editor">
259
+        <state relative-caret-position="330">
260
+          <caret line="22" column="12" lean-forward="true" selection-start-line="22" selection-start-column="12" selection-end-line="22" selection-end-column="12" />
261
+        </state>
262
+      </provider>
263
+    </entry>
264
+    <entry file="file://$PROJECT_DIR$/.idea/ZCW-ORM-SimpleAccount.iml">
265
+      <provider selected="true" editor-type-id="text-editor">
266
+        <state relative-caret-position="120">
267
+          <caret line="8" column="9" selection-start-line="8" selection-start-column="9" selection-end-line="8" selection-end-column="9" />
268
+        </state>
269
+      </provider>
270
+    </entry>
271
+    <entry file="file://$PROJECT_DIR$/README.md">
272
+      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
273
+        <state split_layout="SPLIT">
274
+          <first_editor />
275
+          <second_editor />
276
+        </state>
277
+      </provider>
278
+    </entry>
279
+    <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
280
+      <provider selected="true" editor-type-id="text-editor" />
281
+    </entry>
282
+    <entry file="file://$PROJECT_DIR$/.idea/modules.xml">
283
+      <provider selected="true" editor-type-id="text-editor" />
284
+    </entry>
285
+    <entry file="file://$PROJECT_DIR$/pom.xml">
286
+      <provider selected="true" editor-type-id="text-editor">
287
+        <state relative-caret-position="300">
288
+          <caret line="20" column="81" lean-forward="true" selection-start-line="20" selection-start-column="81" selection-end-line="20" selection-end-column="81" />
289
+        </state>
290
+      </provider>
291
+    </entry>
292
+    <entry file="file://$PROJECT_DIR$/.idea/ZCW-ORM-SimpleAccount.iml">
293
+      <provider selected="true" editor-type-id="text-editor">
294
+        <state relative-caret-position="120">
295
+          <caret line="8" column="9" selection-start-line="8" selection-start-column="9" selection-end-line="8" selection-end-column="9" />
296
+        </state>
297
+      </provider>
298
+    </entry>
299
+    <entry file="file://$PROJECT_DIR$/README.md">
300
+      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
301
+        <state split_layout="SPLIT">
302
+          <first_editor />
303
+          <second_editor />
304
+        </state>
305
+      </provider>
306
+    </entry>
307
+    <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
308
+      <provider selected="true" editor-type-id="text-editor" />
309
+    </entry>
310
+    <entry file="file://$PROJECT_DIR$/.idea/modules.xml">
311
+      <provider selected="true" editor-type-id="text-editor" />
312
+    </entry>
313
+    <entry file="file://$PROJECT_DIR$/pom.xml">
314
+      <provider selected="true" editor-type-id="text-editor">
315
+        <state relative-caret-position="330">
316
+          <caret line="22" column="37" lean-forward="true" selection-start-line="22" selection-start-column="37" selection-end-line="22" selection-end-column="37" />
317
+        </state>
318
+      </provider>
319
+    </entry>
320
+    <entry file="file://$PROJECT_DIR$/.idea/ZCW-ORM-SimpleAccount.iml">
321
+      <provider selected="true" editor-type-id="text-editor">
322
+        <state relative-caret-position="120">
323
+          <caret line="8" column="9" lean-forward="true" selection-start-line="8" selection-start-column="9" selection-end-line="8" selection-end-column="9" />
324
+        </state>
325
+      </provider>
326
+    </entry>
327
+    <entry file="file://$PROJECT_DIR$/README.md">
328
+      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
329
+        <state split_layout="SPLIT">
330
+          <first_editor />
331
+          <second_editor />
332
+        </state>
333
+      </provider>
334
+    </entry>
335
+    <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
336
+      <provider selected="true" editor-type-id="text-editor" />
337
+    </entry>
338
+    <entry file="file://$PROJECT_DIR$/.idea/modules.xml">
339
+      <provider selected="true" editor-type-id="text-editor" />
340
+    </entry>
341
+    <entry file="file://$PROJECT_DIR$/.idea/ZCW-ORM-SimpleAccount.iml">
342
+      <provider selected="true" editor-type-id="text-editor" />
343
+    </entry>
344
+    <entry file="file://$PROJECT_DIR$/README.md">
345
+      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
346
+        <state split_layout="SPLIT">
347
+          <first_editor />
348
+          <second_editor />
349
+        </state>
350
+      </provider>
351
+    </entry>
352
+    <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
353
+      <provider selected="true" editor-type-id="text-editor" />
354
+    </entry>
355
+    <entry file="file://$PROJECT_DIR$/.idea/modules.xml">
356
+      <provider selected="true" editor-type-id="text-editor" />
357
+    </entry>
358
+    <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
359
+      <provider selected="true" editor-type-id="text-editor" />
360
+    </entry>
361
+    <entry file="file://$PROJECT_DIR$/.idea/modules.xml">
362
+      <provider selected="true" editor-type-id="text-editor" />
363
+    </entry>
364
+    <entry file="file://$PROJECT_DIR$/.idea/ZCW-ORM-SimpleAccount.iml">
365
+      <provider selected="true" editor-type-id="text-editor">
366
+        <state relative-caret-position="120">
367
+          <caret line="8" column="9" selection-start-line="8" selection-start-column="9" selection-end-line="8" selection-end-column="9" />
368
+        </state>
369
+      </provider>
370
+    </entry>
371
+    <entry file="file://$PROJECT_DIR$/README.md">
372
+      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
373
+        <state split_layout="SPLIT">
374
+          <first_editor />
375
+          <second_editor />
376
+        </state>
377
+      </provider>
378
+    </entry>
379
+    <entry file="file://$PROJECT_DIR$/pom.xml">
380
+      <provider selected="true" editor-type-id="text-editor">
381
+        <state relative-caret-position="525">
382
+          <caret line="35" selection-start-line="35" selection-end-line="35" />
383
+        </state>
384
+      </provider>
385
+    </entry>
386
+  </component>
387
+  <component name="masterDetails">
388
+    <states>
389
+      <state key="ArtifactsStructureConfigurable.UI">
390
+        <settings>
391
+          <artifact-editor />
392
+          <splitter-proportions>
393
+            <option name="proportions">
394
+              <list>
395
+                <option value="0.2" />
396
+              </list>
397
+            </option>
398
+          </splitter-proportions>
399
+        </settings>
400
+      </state>
401
+      <state key="FacetStructureConfigurable.UI">
402
+        <settings>
403
+          <last-edited>No facets are configured</last-edited>
404
+          <splitter-proportions>
405
+            <option name="proportions">
406
+              <list>
407
+                <option value="0.2" />
408
+              </list>
409
+            </option>
410
+          </splitter-proportions>
411
+        </settings>
412
+      </state>
413
+      <state key="GlobalLibrariesConfigurable.UI">
414
+        <settings>
415
+          <splitter-proportions>
416
+            <option name="proportions">
417
+              <list>
418
+                <option value="0.2" />
419
+              </list>
420
+            </option>
421
+          </splitter-proportions>
422
+        </settings>
423
+      </state>
424
+      <state key="JdkListConfigurable.UI">
425
+        <settings>
426
+          <last-edited>1.8</last-edited>
427
+          <splitter-proportions>
428
+            <option name="proportions">
429
+              <list>
430
+                <option value="0.2" />
431
+              </list>
432
+            </option>
433
+          </splitter-proportions>
434
+        </settings>
435
+      </state>
436
+      <state key="ModuleStructureConfigurable.UI">
437
+        <settings>
438
+          <last-edited>ZCW-ORM-SimpleAccount</last-edited>
439
+          <splitter-proportions>
440
+            <option name="proportions">
441
+              <list>
442
+                <option value="0.2" />
443
+              </list>
444
+            </option>
445
+          </splitter-proportions>
446
+        </settings>
447
+      </state>
448
+      <state key="ProjectJDKs.UI">
449
+        <settings>
450
+          <last-edited>1.8</last-edited>
451
+          <splitter-proportions>
452
+            <option name="proportions">
453
+              <list>
454
+                <option value="0.2" />
455
+              </list>
456
+            </option>
457
+          </splitter-proportions>
458
+        </settings>
459
+      </state>
460
+      <state key="ProjectLibrariesConfigurable.UI">
461
+        <settings>
462
+          <splitter-proportions>
463
+            <option name="proportions">
464
+              <list>
465
+                <option value="0.2" />
466
+              </list>
467
+            </option>
468
+          </splitter-proportions>
469
+        </settings>
470
+      </state>
471
+    </states>
472
+  </component>
473
+</project>

+ 37
- 0
pom.xml View File

@@ -0,0 +1,37 @@
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>ORM</groupId>
8
+    <artifactId>simple_account</artifactId>
9
+    <version>1.0-SNAPSHOT</version>
10
+
11
+<dependencies>
12
+    <!-- https://mvnrepository.com/artifact/com.j256.ormlite/ormlite-core -->
13
+    <dependency>
14
+        <groupId>com.j256.ormlite</groupId>
15
+        <artifactId>ormlite-core</artifactId>
16
+        <version>4.48</version>
17
+    </dependency>
18
+
19
+    <!-- https://mvnrepository.com/artifact/com.j256.ormlite/ormlite-jdbc -->
20
+    <dependency>
21
+        <groupId>com.j256.ormlite</groupId>
22
+        <artifactId>ormlite-jdbc</artifactId>
23
+        <version>4.48</version>
24
+    </dependency>
25
+
26
+    <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
27
+    <dependency>
28
+        <groupId>mysql</groupId>
29
+        <artifactId>mysql-connector-java</artifactId>
30
+        <version>5.1.6</version>
31
+    </dependency>
32
+
33
+
34
+</dependencies>
35
+
36
+
37
+</project>

+ 2
- 0
simple_account.iml View File

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

+ 67
- 0
src/main/java/Account.java View File

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

+ 65
- 0
src/main/java/AccountApp.java View File

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

BIN
target/classes/Account.class View File


BIN
target/classes/AccountApp.class View File