Soujanya Buragapu il y a 6 ans
Parent
révision
f81075c61a

+ 19
- 0
.idea/dataSources.xml Voir le fichier

@@ -0,0 +1,19 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="DataSourceManagerImpl" format="xml" multifile-model="true">
4
+    <data-source source="LOCAL" name="@localhost" uuid="101638bd-151d-4014-b468-ef3cefd899e1">
5
+      <driver-ref>mysql</driver-ref>
6
+      <synchronize>true</synchronize>
7
+      <jdbc-driver>com.mysql.jdbc.Driver</jdbc-driver>
8
+      <jdbc-url>jdbc:mysql://localhost:3306</jdbc-url>
9
+      <driver-properties>
10
+        <property name="autoReconnect" value="true" />
11
+        <property name="zeroDateTimeBehavior" value="convertToNull" />
12
+        <property name="tinyInt1isBit" value="false" />
13
+        <property name="characterEncoding" value="utf8" />
14
+        <property name="characterSetResults" value="utf8" />
15
+        <property name="yearIsDateType" value="false" />
16
+      </driver-properties>
17
+    </data-source>
18
+  </component>
19
+</project>

+ 6
- 0
.idea/vcs.xml Voir le fichier

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

+ 13
- 0
JavaApp/.idea/compiler.xml Voir le fichier

@@ -0,0 +1,13 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="CompilerConfiguration">
4
+    <annotationProcessing>
5
+      <profile name="Maven default annotation processors profile" enabled="true">
6
+        <sourceOutputDir name="target/generated-sources/annotations" />
7
+        <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
8
+        <outputRelativeToContentRoot value="true" />
9
+        <module name="JavaApp" />
10
+      </profile>
11
+    </annotationProcessing>
12
+  </component>
13
+</project>

+ 19
- 0
JavaApp/.idea/dataSources.xml Voir le fichier

@@ -0,0 +1,19 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="DataSourceManagerImpl" format="xml" multifile-model="true">
4
+    <data-source source="LOCAL" name="@localhost" uuid="8ecd4476-ddce-4e84-97b0-39ff299f5379">
5
+      <driver-ref>mysql</driver-ref>
6
+      <synchronize>true</synchronize>
7
+      <jdbc-driver>com.mysql.jdbc.Driver</jdbc-driver>
8
+      <jdbc-url>jdbc:mysql://localhost:3306</jdbc-url>
9
+      <driver-properties>
10
+        <property name="autoReconnect" value="true" />
11
+        <property name="zeroDateTimeBehavior" value="convertToNull" />
12
+        <property name="tinyInt1isBit" value="false" />
13
+        <property name="characterEncoding" value="utf8" />
14
+        <property name="characterSetResults" value="utf8" />
15
+        <property name="yearIsDateType" value="false" />
16
+      </driver-properties>
17
+    </data-source>
18
+  </component>
19
+</project>

+ 4152
- 0
JavaApp/.idea/dataSources/8ecd4476-ddce-4e84-97b0-39ff299f5379.xml
Fichier diff supprimé car celui-ci est trop grand
Voir le fichier


+ 14
- 0
JavaApp/.idea/misc.xml Voir le fichier

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

+ 124
- 0
JavaApp/.idea/uiDesigner.xml Voir le fichier

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

+ 387
- 0
JavaApp/.idea/workspace.xml Voir le fichier

@@ -0,0 +1,387 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="efac3a7b-f6ca-4875-85aa-8c099de183ea" name="Default Changelist" comment="" />
5
+    <ignored path="$PROJECT_DIR$/out/" />
6
+    <ignored path="$PROJECT_DIR$/target/" />
7
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
8
+    <option name="SHOW_DIALOG" value="false" />
9
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
11
+    <option name="LAST_RESOLUTION" value="IGNORE" />
12
+  </component>
13
+  <component name="DatabaseView">
14
+    <option name="SHOW_INTERMEDIATE" value="true" />
15
+    <option name="GROUP_DATA_SOURCES" value="true" />
16
+    <option name="GROUP_SCHEMA" value="true" />
17
+    <option name="GROUP_CONTENTS" value="false" />
18
+    <option name="SORT_POSITIONED" value="false" />
19
+    <option name="SHOW_EMPTY_GROUPS" value="false" />
20
+    <option name="AUTO_SCROLL_FROM_SOURCE" value="false" />
21
+    <option name="HIDDEN_KINDS">
22
+      <set />
23
+    </option>
24
+    <expand>
25
+      <path>
26
+        <item name="Database" type="3277223f:DatabaseStructure$DbRootGroup" />
27
+        <item name="@localhost" type="feb32156:DbDataSourceImpl" />
28
+      </path>
29
+      <path>
30
+        <item name="Database" type="3277223f:DatabaseStructure$DbRootGroup" />
31
+        <item name="@localhost" type="feb32156:DbDataSourceImpl" />
32
+        <item name="schemas" type="d4e8921:DatabaseStructure$FamilyGroup" />
33
+      </path>
34
+      <path>
35
+        <item name="Database" type="3277223f:DatabaseStructure$DbRootGroup" />
36
+        <item name="@localhost" type="feb32156:DbDataSourceImpl" />
37
+        <item name="schemas" type="d4e8921:DatabaseStructure$FamilyGroup" />
38
+        <item name="orm_lab: schema" type="c314c289:MysqlImplModel$Schema" />
39
+      </path>
40
+      <path>
41
+        <item name="Database" type="3277223f:DatabaseStructure$DbRootGroup" />
42
+        <item name="@localhost" type="feb32156:DbDataSourceImpl" />
43
+        <item name="schemas" type="d4e8921:DatabaseStructure$FamilyGroup" />
44
+        <item name="orm_lab: schema" type="c314c289:MysqlImplModel$Schema" />
45
+        <item name="account: table" type="98d5ac3d:MysqlImplModel$Table" />
46
+      </path>
47
+    </expand>
48
+    <select />
49
+  </component>
50
+  <component name="FUSProjectUsageTrigger">
51
+    <session id="1082917010">
52
+      <usages-collector id="statistics.lifecycle.project">
53
+        <counts>
54
+          <entry key="project.open.time.7" value="1" />
55
+          <entry key="project.opened" value="1" />
56
+        </counts>
57
+      </usages-collector>
58
+      <usages-collector id="statistics.file.extensions.edit">
59
+        <counts>
60
+          <entry key="java" value="24" />
61
+          <entry key="sql" value="236" />
62
+          <entry key="xml" value="17" />
63
+        </counts>
64
+      </usages-collector>
65
+      <usages-collector id="statistics.file.types.edit">
66
+        <counts>
67
+          <entry key="JAVA" value="24" />
68
+          <entry key="Scratch" value="236" />
69
+          <entry key="XML" value="17" />
70
+        </counts>
71
+      </usages-collector>
72
+      <usages-collector id="statistics.file.extensions.open">
73
+        <counts>
74
+          <entry key="java" value="2" />
75
+          <entry key="sql" value="1" />
76
+        </counts>
77
+      </usages-collector>
78
+      <usages-collector id="statistics.file.types.open">
79
+        <counts>
80
+          <entry key="JAVA" value="2" />
81
+          <entry key="Scratch" value="1" />
82
+        </counts>
83
+      </usages-collector>
84
+    </session>
85
+  </component>
86
+  <component name="FileEditorManager">
87
+    <leaf>
88
+      <file pinned="false" current-in-tab="false">
89
+        <entry file="file://$PROJECT_DIR$/../ZCW-ORM-SimpleAccount/JavaApp/pom.xml">
90
+          <provider selected="true" editor-type-id="text-editor">
91
+            <state relative-caret-position="480">
92
+              <caret line="32" column="10" selection-start-line="32" selection-start-column="10" selection-end-line="32" selection-end-column="10" />
93
+            </state>
94
+          </provider>
95
+        </entry>
96
+      </file>
97
+      <file pinned="false" current-in-tab="false">
98
+        <entry file="file://$PROJECT_DIR$/../ZCW-ORM-SimpleAccount/JavaApp/src/main/java/Account.java">
99
+          <provider selected="true" editor-type-id="text-editor">
100
+            <state relative-caret-position="975">
101
+              <caret line="65" selection-start-line="65" selection-end-line="65" />
102
+              <folding>
103
+                <element signature="imports" expanded="true" />
104
+                <element signature="e#751#752#0" expanded="true" />
105
+                <element signature="e#791#792#0" expanded="true" />
106
+                <element signature="e#955#956#0" expanded="true" />
107
+                <element signature="e#988#989#0" expanded="true" />
108
+                <element signature="e#1023#1024#0" expanded="true" />
109
+                <element signature="e#1058#1059#0" expanded="true" />
110
+                <element signature="e#1102#1103#0" expanded="true" />
111
+                <element signature="e#1142#1143#0" expanded="true" />
112
+                <element signature="e#1181#1182#0" expanded="true" />
113
+                <element signature="e#1220#1221#0" expanded="true" />
114
+                <element signature="e#1272#1273#0" expanded="true" />
115
+                <element signature="e#1320#1321#0" expanded="true" />
116
+                <element signature="e#1371#1372#0" expanded="true" />
117
+                <element signature="e#1417#1418#0" expanded="true" />
118
+              </folding>
119
+            </state>
120
+          </provider>
121
+        </entry>
122
+      </file>
123
+      <file pinned="false" current-in-tab="true">
124
+        <entry file="file://$APPLICATION_CONFIG_DIR$/consoles/db/8ecd4476-ddce-4e84-97b0-39ff299f5379/console.sql">
125
+          <provider selected="true" editor-type-id="text-editor">
126
+            <state relative-caret-position="225">
127
+              <caret line="15" column="24" selection-start-line="15" selection-start-column="24" selection-end-line="15" selection-end-column="24" />
128
+            </state>
129
+          </provider>
130
+        </entry>
131
+      </file>
132
+      <file pinned="false" current-in-tab="false">
133
+        <entry file="file://$PROJECT_DIR$/../ZCW-ORM-SimpleAccount/JavaApp/src/main/java/AccountApp.java">
134
+          <provider selected="true" editor-type-id="text-editor">
135
+            <state relative-caret-position="330">
136
+              <caret line="22" column="92" selection-start-line="22" selection-start-column="92" selection-end-line="22" selection-end-column="92" />
137
+              <folding>
138
+                <element signature="imports" expanded="true" />
139
+              </folding>
140
+            </state>
141
+          </provider>
142
+        </entry>
143
+      </file>
144
+    </leaf>
145
+  </component>
146
+  <component name="FileTemplateManagerImpl">
147
+    <option name="RECENT_TEMPLATES">
148
+      <list>
149
+        <option value="Class" />
150
+      </list>
151
+    </option>
152
+  </component>
153
+  <component name="IdeDocumentHistory">
154
+    <option name="CHANGED_PATHS">
155
+      <list>
156
+        <option value="$PROJECT_DIR$/src/main/java/Account.java" />
157
+        <option value="$PROJECT_DIR$/src/main/java/AccountApp.java" />
158
+        <option value="$PROJECT_DIR$/pom.xml" />
159
+        <option value="$APPLICATION_CONFIG_DIR$/consoles/db/8ecd4476-ddce-4e84-97b0-39ff299f5379/console.sql" />
160
+      </list>
161
+    </option>
162
+  </component>
163
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
164
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
165
+  <component name="JsGulpfileManager">
166
+    <detection-done>true</detection-done>
167
+    <sorting>DEFINITION_ORDER</sorting>
168
+  </component>
169
+  <component name="MavenImportPreferences">
170
+    <option name="importingSettings">
171
+      <MavenImportingSettings>
172
+        <option name="importAutomatically" value="true" />
173
+      </MavenImportingSettings>
174
+    </option>
175
+  </component>
176
+  <component name="ProjectFrameBounds">
177
+    <option name="y" value="23" />
178
+    <option name="width" value="1280" />
179
+    <option name="height" value="714" />
180
+  </component>
181
+  <component name="ProjectView">
182
+    <navigator proportions="" version="1">
183
+      <foldersAlwaysOnTop value="true" />
184
+    </navigator>
185
+    <panes>
186
+      <pane id="ProjectPane">
187
+        <subPane>
188
+          <expand>
189
+            <path>
190
+              <item name="JavaApp" type="b2602c69:ProjectViewProjectNode" />
191
+              <item name="JavaApp" type="462c0819:PsiDirectoryNode" />
192
+            </path>
193
+            <path>
194
+              <item name="JavaApp" type="b2602c69:ProjectViewProjectNode" />
195
+              <item name="JavaApp" type="462c0819:PsiDirectoryNode" />
196
+              <item name=".idea" type="462c0819:PsiDirectoryNode" />
197
+            </path>
198
+            <path>
199
+              <item name="JavaApp" type="b2602c69:ProjectViewProjectNode" />
200
+              <item name="JavaApp" type="462c0819:PsiDirectoryNode" />
201
+              <item name="src" type="462c0819:PsiDirectoryNode" />
202
+            </path>
203
+            <path>
204
+              <item name="JavaApp" type="b2602c69:ProjectViewProjectNode" />
205
+              <item name="JavaApp" type="462c0819:PsiDirectoryNode" />
206
+              <item name="src" type="462c0819:PsiDirectoryNode" />
207
+              <item name="main" type="462c0819:PsiDirectoryNode" />
208
+            </path>
209
+            <path>
210
+              <item name="JavaApp" type="b2602c69:ProjectViewProjectNode" />
211
+              <item name="JavaApp" type="462c0819:PsiDirectoryNode" />
212
+              <item name="src" type="462c0819:PsiDirectoryNode" />
213
+              <item name="main" type="462c0819:PsiDirectoryNode" />
214
+              <item name="java" type="462c0819:PsiDirectoryNode" />
215
+            </path>
216
+          </expand>
217
+          <select />
218
+        </subPane>
219
+      </pane>
220
+      <pane id="PackagesPane" />
221
+      <pane id="Scope" />
222
+    </panes>
223
+  </component>
224
+  <component name="PropertiesComponent">
225
+    <property name="DatabaseDriversLRU" value="mysql" />
226
+    <property name="WebServerToolWindowFactoryState" value="false" />
227
+    <property name="aspect.path.notification.shown" value="true" />
228
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1542306383994" />
229
+    <property name="database.console.LAST_STATE" value="false" />
230
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
231
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
232
+  </component>
233
+  <component name="RecentsManager">
234
+    <key name="MoveFile.RECENT_KEYS">
235
+      <recent name="$PROJECT_DIR$/../ZCW-ORM-SimpleAccount" />
236
+    </key>
237
+  </component>
238
+  <component name="RunDashboard">
239
+    <option name="ruleStates">
240
+      <list>
241
+        <RuleState>
242
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
243
+        </RuleState>
244
+        <RuleState>
245
+          <option name="name" value="StatusDashboardGroupingRule" />
246
+        </RuleState>
247
+      </list>
248
+    </option>
249
+  </component>
250
+  <component name="RunManager">
251
+    <configuration name="AccountApp" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
252
+      <option name="MAIN_CLASS_NAME" value="AccountApp" />
253
+      <module name="JavaApp" />
254
+      <method v="2">
255
+        <option name="Make" enabled="true" />
256
+      </method>
257
+    </configuration>
258
+    <recent_temporary>
259
+      <list>
260
+        <item itemvalue="Application.AccountApp" />
261
+      </list>
262
+    </recent_temporary>
263
+  </component>
264
+  <component name="SvnConfiguration">
265
+    <configuration />
266
+  </component>
267
+  <component name="TaskManager">
268
+    <task active="true" id="Default" summary="Default task">
269
+      <changelist id="efac3a7b-f6ca-4875-85aa-8c099de183ea" name="Default Changelist" comment="" />
270
+      <created>1542304962187</created>
271
+      <option name="number" value="Default" />
272
+      <option name="presentableId" value="Default" />
273
+      <updated>1542304962187</updated>
274
+      <workItem from="1542304969813" duration="1553000" />
275
+    </task>
276
+    <servers />
277
+  </component>
278
+  <component name="TimeTrackingManager">
279
+    <option name="totallyTimeSpent" value="1553000" />
280
+  </component>
281
+  <component name="ToolWindowManager">
282
+    <frame x="0" y="23" width="1280" height="714" extended-state="0" />
283
+    <layout>
284
+      <window_info id="Image Layers" />
285
+      <window_info id="Designer" />
286
+      <window_info id="UI Designer" />
287
+      <window_info id="Capture Tool" />
288
+      <window_info id="Favorites" side_tool="true" />
289
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.24959612" />
290
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
291
+      <window_info anchor="bottom" id="Messages" weight="0.329582" />
292
+      <window_info anchor="bottom" id="Database Changes" />
293
+      <window_info anchor="bottom" id="Version Control" show_stripe_button="false" />
294
+      <window_info anchor="bottom" id="Database Console" weight="0.329582" />
295
+      <window_info active="true" anchor="bottom" id="Terminal" visible="true" weight="0.329582" />
296
+      <window_info anchor="bottom" id="Event Log" side_tool="true" />
297
+      <window_info anchor="bottom" id="Message" order="0" />
298
+      <window_info anchor="bottom" id="Find" order="1" />
299
+      <window_info anchor="bottom" id="Run" order="2" weight="0.329582" />
300
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
301
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
302
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
303
+      <window_info anchor="bottom" id="TODO" order="6" />
304
+      <window_info anchor="right" id="Palette" />
305
+      <window_info anchor="right" id="Theme Preview" />
306
+      <window_info anchor="right" id="Capture Analysis" />
307
+      <window_info anchor="right" id="Palette&#9;" />
308
+      <window_info anchor="right" id="Database" weight="0.32956383" />
309
+      <window_info anchor="right" id="Maven Projects" />
310
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
311
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
312
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
313
+    </layout>
314
+  </component>
315
+  <component name="TypeScriptGeneratedFilesManager">
316
+    <option name="version" value="1" />
317
+  </component>
318
+  <component name="VcsContentAnnotationSettings">
319
+    <option name="myLimit" value="2678400000" />
320
+  </component>
321
+  <component name="editorHistoryManager">
322
+    <entry file="file://$PROJECT_DIR$/../ZCW-ORM-SimpleAccount/JavaApp/pom.xml">
323
+      <provider selected="true" editor-type-id="text-editor">
324
+        <state relative-caret-position="480">
325
+          <caret line="32" column="10" selection-start-line="32" selection-start-column="10" selection-end-line="32" selection-end-column="10" />
326
+        </state>
327
+      </provider>
328
+    </entry>
329
+    <entry file="file://$PROJECT_DIR$/../ZCW-ORM-SimpleAccount/JavaApp/src/main/java/AccountApp.java">
330
+      <provider selected="true" editor-type-id="text-editor">
331
+        <state relative-caret-position="330">
332
+          <caret line="22" column="92" selection-start-line="22" selection-start-column="92" selection-end-line="22" selection-end-column="92" />
333
+          <folding>
334
+            <element signature="imports" expanded="true" />
335
+          </folding>
336
+        </state>
337
+      </provider>
338
+    </entry>
339
+    <entry file="file://$PROJECT_DIR$/../ZCW-ORM-SimpleAccount/JavaApp/src/main/java/Account.java">
340
+      <provider selected="true" editor-type-id="text-editor">
341
+        <state relative-caret-position="975">
342
+          <caret line="65" selection-start-line="65" selection-end-line="65" />
343
+          <folding>
344
+            <element signature="imports" expanded="true" />
345
+            <element signature="e#751#752#0" expanded="true" />
346
+            <element signature="e#791#792#0" expanded="true" />
347
+            <element signature="e#955#956#0" expanded="true" />
348
+            <element signature="e#988#989#0" expanded="true" />
349
+            <element signature="e#1023#1024#0" expanded="true" />
350
+            <element signature="e#1058#1059#0" expanded="true" />
351
+            <element signature="e#1102#1103#0" expanded="true" />
352
+            <element signature="e#1142#1143#0" expanded="true" />
353
+            <element signature="e#1181#1182#0" expanded="true" />
354
+            <element signature="e#1220#1221#0" expanded="true" />
355
+            <element signature="e#1272#1273#0" expanded="true" />
356
+            <element signature="e#1320#1321#0" expanded="true" />
357
+            <element signature="e#1371#1372#0" expanded="true" />
358
+            <element signature="e#1417#1418#0" expanded="true" />
359
+          </folding>
360
+        </state>
361
+      </provider>
362
+    </entry>
363
+    <entry file="file://$APPLICATION_CONFIG_DIR$/consoles/db/8ecd4476-ddce-4e84-97b0-39ff299f5379/console.sql">
364
+      <provider selected="true" editor-type-id="text-editor">
365
+        <state relative-caret-position="225">
366
+          <caret line="15" column="24" selection-start-line="15" selection-start-column="24" selection-end-line="15" selection-end-column="24" />
367
+        </state>
368
+      </provider>
369
+    </entry>
370
+  </component>
371
+  <component name="masterDetails">
372
+    <states>
373
+      <state key="ProjectJDKs.UI">
374
+        <settings>
375
+          <last-edited>1.8</last-edited>
376
+          <splitter-proportions>
377
+            <option name="proportions">
378
+              <list>
379
+                <option value="0.2" />
380
+              </list>
381
+            </option>
382
+          </splitter-proportions>
383
+        </settings>
384
+      </state>
385
+    </states>
386
+  </component>
387
+</project>

+ 2
- 0
JavaApp/JavaApp.iml Voir le fichier

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

+ 33
- 0
JavaApp/pom.xml Voir le fichier

@@ -0,0 +1,33 @@
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.zipcodewilmington.com</groupId>
8
+    <artifactId>javac</artifactId>
9
+    <version>1.0-SNAPSHOT</version>
10
+    <!-- https://mvnrepository.com/artifact/com.j256.ormlite/ormlite-core -->
11
+    <dependencies >
12
+    <dependency>
13
+
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
+    <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
26
+    <dependency>
27
+        <groupId>mysql</groupId>
28
+        <artifactId>mysql-connector-java</artifactId>
29
+        <version>8.0.12</version>
30
+    </dependency>
31
+
32
+</dependencies>
33
+</project>

+ 66
- 0
JavaApp/src/main/java/Account.java Voir le fichier

@@ -0,0 +1,66 @@
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
- 0
JavaApp/src/main/java/AccountApp.java Voir le fichier

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

BIN
JavaApp/target/classes/Account.class Voir le fichier


BIN
JavaApp/target/classes/AccountApp.class Voir le fichier