Khalil Malik Saboor 6 år sedan
förälder
incheckning
348b019e8b

+ 9
- 0
.idea/ZCW-ORM-SimpleAccount.iml Visa fil

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

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

+ 13
- 0
.idea/libraries/Maven__com_j256_ormlite_ormlite_core_4_48.xml Visa fil

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

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

@@ -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/misc.xml Visa fil

@@ -0,0 +1,13 @@
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$/orm/pom.xml" />
10
+      </list>
11
+    </option>
12
+  </component>
13
+</project>

+ 9
- 0
.idea/modules.xml Visa fil

@@ -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$/orm/orm.iml" filepath="$PROJECT_DIR$/orm/orm.iml" />
7
+    </modules>
8
+  </component>
9
+</project>

+ 6
- 0
.idea/vcs.xml Visa fil

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

+ 526
- 0
.idea/workspace.xml Visa fil

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

+ 18
- 0
orm/orm.iml Visa fil

@@ -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_7">
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="jdk" jdkName="1.8" jdkType="JavaSDK" />
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
orm/pom.xml Visa fil

@@ -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>com.j256.ormlite</groupId>
8
+    <artifactId>ormlite</artifactId>
9
+    <version>1.0</version>
10
+    <build>
11
+        <plugins>
12
+            <plugin>
13
+                <groupId>org.apache.maven.plugins</groupId>
14
+                <artifactId>maven-compiler-plugin</artifactId>
15
+                <configuration>
16
+                    <source>7</source>
17
+                    <target>7</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
+        <!-- https://mvnrepository.com/artifact/com.j256.ormlite/ormlite-jdbc -->
31
+        <dependency>
32
+            <groupId>com.j256.ormlite</groupId>
33
+            <artifactId>ormlite-jdbc</artifactId>
34
+            <version>4.48</version>
35
+        </dependency>
36
+
37
+        <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
38
+        <dependency>
39
+            <groupId>mysql</groupId>
40
+            <artifactId>mysql-connector-java</artifactId>
41
+            <version>5.1.6</version>
42
+        </dependency>
43
+
44
+    </dependencies>
45
+</project>

+ 64
- 0
orm/src/main/java/Account.java Visa fil

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

+ 97
- 0
orm/src/main/java/AccountApp.java Visa fil

@@ -0,0 +1,97 @@
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
+import java.util.Scanner;
7
+
8
+public class AccountApp {
9
+
10
+    // we are using a MySQl database
11
+    private final static String DATABASE_URL = "jdbc:mysql://localhost:3306/orm_lab2?useUnicode=true";
12
+
13
+    private Dao<Account, Integer> accountDao;
14
+
15
+    public static void main(String[] args) throws Exception {
16
+        // turn our static method into an instance of Main
17
+        new AccountApp().doMain(args);
18
+    }
19
+
20
+    private void doMain(String[] args) throws Exception {
21
+        ConnectionSource connectionSource = null;
22
+        try {
23
+            // create our data-source for the database
24
+            connectionSource = new JdbcConnectionSource(DATABASE_URL, "root", "");
25
+            // setup our  DAOs
26
+            setupDao(connectionSource);
27
+            // read, write and delete some data
28
+            processData();
29
+
30
+            System.out.println("\n\nIt seems to have worked\n\n");
31
+        } finally {
32
+            // destroy the data source which should close underlying connections
33
+            if (connectionSource != null) {
34
+                connectionSource.close();
35
+            }
36
+        }
37
+    }
38
+
39
+    /**
40
+     * Read and write some example data.
41
+     */
42
+    private void processData() throws Exception {
43
+        System.out.println("Welcome to MYORM_BITCH!");
44
+        System.out.println("");
45
+        Scanner input = new Scanner(System.in);
46
+        boolean func;
47
+        while (func = true){
48
+            System.out.print("Enter a command: ");
49
+            String command = input.next();
50
+            switch (command){
51
+                case "C":
52
+
53
+                    break;
54
+                case "R":
55
+
56
+                    break;
57
+                case"U":
58
+
59
+                    break;
60
+                case "D":
61
+                    // delete the account
62
+                   // accountDao.delete(account);
63
+                    break;
64
+                case"Exit":
65
+
66
+                    break;
67
+                default:
68
+                    String error = "Invalid Entry!!!";
69
+                    break;
70
+            }
71
+        }
72
+        // create an instance of Account
73
+        String name = "Jim Coakley";
74
+        Account account = new Account(name);
75
+
76
+        // persist the account object to the database
77
+        accountDao.create(account);
78
+        int id = account.getId();
79
+        System.out.println(id);
80
+
81
+        // assign a password
82
+        account.setPassword("_secret");
83
+        // update the database after changing the object
84
+        accountDao.update(account);
85
+
86
+        //accountDao.deleteById(id);
87
+    }
88
+
89
+    /**
90
+     * Setup our  DAOs
91
+     */
92
+    private void setupDao(ConnectionSource connectionSource) throws Exception {
93
+
94
+        accountDao = DaoManager.createDao(connectionSource, Account.class);
95
+
96
+    }
97
+}

Binär
orm/target/classes/Account.class Visa fil


Binär
orm/target/classes/AccountApp.class Visa fil