Parcourir la source

add jim coakley or whatever his name is

Jennifer Chao il y a 5 ans
révision
6deb6dc889

+ 13
- 0
.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="ORM_Lab" />
10
+      </profile>
11
+    </annotationProcessing>
12
+  </component>
13
+</project>

+ 14
- 0
.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>

+ 384
- 0
.idea/workspace.xml Voir le fichier

@@ -0,0 +1,384 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="76ef3434-85fd-4aed-92dd-942905803ede" 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="FUSProjectUsageTrigger">
14
+    <session id="-1963640883">
15
+      <usages-collector id="statistics.lifecycle.project">
16
+        <counts>
17
+          <entry key="project.open.time.1" value="1" />
18
+          <entry key="project.opened" value="1" />
19
+        </counts>
20
+      </usages-collector>
21
+      <usages-collector id="statistics.file.extensions.edit">
22
+        <counts>
23
+          <entry key="java" value="133" />
24
+          <entry key="xml" value="19" />
25
+        </counts>
26
+      </usages-collector>
27
+      <usages-collector id="statistics.file.types.edit">
28
+        <counts>
29
+          <entry key="JAVA" value="133" />
30
+          <entry key="XML" value="19" />
31
+        </counts>
32
+      </usages-collector>
33
+      <usages-collector id="statistics.file.extensions.open">
34
+        <counts>
35
+          <entry key="java" value="2" />
36
+        </counts>
37
+      </usages-collector>
38
+      <usages-collector id="statistics.file.types.open">
39
+        <counts>
40
+          <entry key="JAVA" value="2" />
41
+        </counts>
42
+      </usages-collector>
43
+    </session>
44
+  </component>
45
+  <component name="FileEditorManager">
46
+    <leaf>
47
+      <file pinned="false" current-in-tab="true">
48
+        <entry file="file://$PROJECT_DIR$/pom.xml">
49
+          <provider selected="true" editor-type-id="text-editor">
50
+            <state relative-caret-position="278">
51
+              <caret line="29" column="21" lean-forward="true" selection-start-line="25" selection-start-column="7" selection-end-line="29" selection-end-column="21" />
52
+            </state>
53
+          </provider>
54
+        </entry>
55
+      </file>
56
+      <file pinned="false" current-in-tab="false">
57
+        <entry file="file://$PROJECT_DIR$/src/main/java/Account.java">
58
+          <provider selected="true" editor-type-id="text-editor">
59
+            <state relative-caret-position="195">
60
+              <caret line="13" column="24" selection-start-line="13" selection-start-column="24" selection-end-line="13" selection-end-column="24" />
61
+              <folding>
62
+                <element signature="imports" expanded="true" />
63
+                <element signature="e#668#669#0" expanded="true" />
64
+                <element signature="e#700#701#0" expanded="true" />
65
+                <element signature="e#844#845#0" expanded="true" />
66
+                <element signature="e#869#870#0" expanded="true" />
67
+                <element signature="e#900#901#0" expanded="true" />
68
+                <element signature="e#927#928#0" expanded="true" />
69
+                <element signature="e#967#968#0" expanded="true" />
70
+                <element signature="e#999#1000#0" expanded="true" />
71
+                <element signature="e#1034#1035#0" expanded="true" />
72
+                <element signature="e#1065#1066#0" expanded="true" />
73
+                <element signature="e#1113#1114#0" expanded="true" />
74
+                <element signature="e#1153#1154#0" expanded="true" />
75
+                <element signature="e#1196#1197#0" expanded="true" />
76
+                <element signature="e#1234#1235#0" expanded="true" />
77
+              </folding>
78
+            </state>
79
+          </provider>
80
+        </entry>
81
+      </file>
82
+      <file pinned="false" current-in-tab="false">
83
+        <entry file="file://$PROJECT_DIR$/src/main/java/AccountApp.java">
84
+          <provider selected="true" editor-type-id="text-editor">
85
+            <state relative-caret-position="150">
86
+              <caret line="10" column="48" selection-start-line="10" selection-start-column="48" selection-end-line="10" selection-end-column="48" />
87
+              <folding>
88
+                <element signature="imports" expanded="true" />
89
+              </folding>
90
+            </state>
91
+          </provider>
92
+        </entry>
93
+      </file>
94
+    </leaf>
95
+  </component>
96
+  <component name="FileTemplateManagerImpl">
97
+    <option name="RECENT_TEMPLATES">
98
+      <list>
99
+        <option value="Class" />
100
+      </list>
101
+    </option>
102
+  </component>
103
+  <component name="IdeDocumentHistory">
104
+    <option name="CHANGED_PATHS">
105
+      <list>
106
+        <option value="$PROJECT_DIR$/src/main/java/Account.java" />
107
+        <option value="$PROJECT_DIR$/src/main/java/AccountApp.java" />
108
+        <option value="$PROJECT_DIR$/pom.xml" />
109
+      </list>
110
+    </option>
111
+  </component>
112
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
113
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
114
+  <component name="JsGulpfileManager">
115
+    <detection-done>true</detection-done>
116
+    <sorting>DEFINITION_ORDER</sorting>
117
+  </component>
118
+  <component name="ProjectFrameBounds" fullScreen="true">
119
+    <option name="width" value="1280" />
120
+    <option name="height" value="800" />
121
+  </component>
122
+  <component name="ProjectView">
123
+    <navigator proportions="" version="1">
124
+      <foldersAlwaysOnTop value="true" />
125
+    </navigator>
126
+    <panes>
127
+      <pane id="PackagesPane" />
128
+      <pane id="Scope" />
129
+      <pane id="ProjectPane">
130
+        <subPane>
131
+          <expand>
132
+            <path>
133
+              <item name="ORM_Lab" type="b2602c69:ProjectViewProjectNode" />
134
+              <item name="ORM_Lab" type="462c0819:PsiDirectoryNode" />
135
+            </path>
136
+            <path>
137
+              <item name="ORM_Lab" type="b2602c69:ProjectViewProjectNode" />
138
+              <item name="ORM_Lab" type="462c0819:PsiDirectoryNode" />
139
+              <item name="src" type="462c0819:PsiDirectoryNode" />
140
+            </path>
141
+            <path>
142
+              <item name="ORM_Lab" type="b2602c69:ProjectViewProjectNode" />
143
+              <item name="ORM_Lab" type="462c0819:PsiDirectoryNode" />
144
+              <item name="src" type="462c0819:PsiDirectoryNode" />
145
+              <item name="main" type="462c0819:PsiDirectoryNode" />
146
+            </path>
147
+            <path>
148
+              <item name="ORM_Lab" type="b2602c69:ProjectViewProjectNode" />
149
+              <item name="ORM_Lab" type="462c0819:PsiDirectoryNode" />
150
+              <item name="src" type="462c0819:PsiDirectoryNode" />
151
+              <item name="main" type="462c0819:PsiDirectoryNode" />
152
+              <item name="java" type="462c0819:PsiDirectoryNode" />
153
+            </path>
154
+          </expand>
155
+          <select />
156
+        </subPane>
157
+      </pane>
158
+    </panes>
159
+  </component>
160
+  <component name="PropertiesComponent">
161
+    <property name="WebServerToolWindowFactoryState" value="false" />
162
+    <property name="aspect.path.notification.shown" value="true" />
163
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1542238112165" />
164
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
165
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
166
+    <property name="project.structure.last.edited" value="Facets" />
167
+    <property name="project.structure.proportion" value="0.0" />
168
+    <property name="project.structure.side.proportion" value="0.2" />
169
+  </component>
170
+  <component name="RunDashboard">
171
+    <option name="ruleStates">
172
+      <list>
173
+        <RuleState>
174
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
175
+        </RuleState>
176
+        <RuleState>
177
+          <option name="name" value="StatusDashboardGroupingRule" />
178
+        </RuleState>
179
+      </list>
180
+    </option>
181
+  </component>
182
+  <component name="RunManager">
183
+    <configuration name="AccountApp" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
184
+      <option name="MAIN_CLASS_NAME" value="AccountApp" />
185
+      <module name="ORM_Lab" />
186
+      <method v="2">
187
+        <option name="Make" enabled="true" />
188
+      </method>
189
+    </configuration>
190
+    <recent_temporary>
191
+      <list>
192
+        <item itemvalue="Application.AccountApp" />
193
+      </list>
194
+    </recent_temporary>
195
+  </component>
196
+  <component name="SvnConfiguration">
197
+    <configuration />
198
+  </component>
199
+  <component name="TaskManager">
200
+    <task active="true" id="Default" summary="Default task">
201
+      <changelist id="76ef3434-85fd-4aed-92dd-942905803ede" name="Default Changelist" comment="" />
202
+      <created>1542236229831</created>
203
+      <option name="number" value="Default" />
204
+      <option name="presentableId" value="Default" />
205
+      <updated>1542236229831</updated>
206
+      <workItem from="1542236231335" duration="1178000" />
207
+    </task>
208
+    <servers />
209
+  </component>
210
+  <component name="TimeTrackingManager">
211
+    <option name="totallyTimeSpent" value="1178000" />
212
+  </component>
213
+  <component name="ToolWindowManager">
214
+    <frame x="0" y="0" width="1280" height="800" extended-state="0" />
215
+    <editor active="true" />
216
+    <layout>
217
+      <window_info id="Image Layers" />
218
+      <window_info id="Designer" />
219
+      <window_info id="UI Designer" />
220
+      <window_info id="Capture Tool" />
221
+      <window_info id="Favorites" side_tool="true" />
222
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.24959612" />
223
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
224
+      <window_info anchor="bottom" id="Messages" weight="0.32876712" />
225
+      <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
226
+      <window_info anchor="bottom" id="Version Control" show_stripe_button="false" />
227
+      <window_info anchor="bottom" id="Terminal" />
228
+      <window_info anchor="bottom" id="Event Log" side_tool="true" />
229
+      <window_info anchor="bottom" id="Message" order="0" />
230
+      <window_info anchor="bottom" id="Find" order="1" />
231
+      <window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.32876712" />
232
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
233
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
234
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
235
+      <window_info anchor="bottom" id="TODO" order="6" />
236
+      <window_info anchor="right" id="Palette" />
237
+      <window_info anchor="right" id="Theme Preview" />
238
+      <window_info anchor="right" id="Capture Analysis" />
239
+      <window_info anchor="right" id="Palette&#9;" />
240
+      <window_info anchor="right" id="Database" />
241
+      <window_info anchor="right" id="Maven Projects" />
242
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
243
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
244
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
245
+    </layout>
246
+  </component>
247
+  <component name="TypeScriptGeneratedFilesManager">
248
+    <option name="version" value="1" />
249
+  </component>
250
+  <component name="VcsContentAnnotationSettings">
251
+    <option name="myLimit" value="2678400000" />
252
+  </component>
253
+  <component name="editorHistoryManager">
254
+    <entry file="file://$PROJECT_DIR$/src/main/java/Account.java">
255
+      <provider selected="true" editor-type-id="text-editor">
256
+        <state relative-caret-position="195">
257
+          <caret line="13" column="24" selection-start-line="13" selection-start-column="24" selection-end-line="13" selection-end-column="24" />
258
+          <folding>
259
+            <element signature="imports" expanded="true" />
260
+            <element signature="e#668#669#0" expanded="true" />
261
+            <element signature="e#700#701#0" expanded="true" />
262
+            <element signature="e#844#845#0" expanded="true" />
263
+            <element signature="e#869#870#0" expanded="true" />
264
+            <element signature="e#900#901#0" expanded="true" />
265
+            <element signature="e#927#928#0" expanded="true" />
266
+            <element signature="e#967#968#0" expanded="true" />
267
+            <element signature="e#999#1000#0" expanded="true" />
268
+            <element signature="e#1034#1035#0" expanded="true" />
269
+            <element signature="e#1065#1066#0" expanded="true" />
270
+            <element signature="e#1113#1114#0" expanded="true" />
271
+            <element signature="e#1153#1154#0" expanded="true" />
272
+            <element signature="e#1196#1197#0" expanded="true" />
273
+            <element signature="e#1234#1235#0" expanded="true" />
274
+          </folding>
275
+        </state>
276
+      </provider>
277
+    </entry>
278
+    <entry file="file://$PROJECT_DIR$/src/main/java/AccountApp.java">
279
+      <provider selected="true" editor-type-id="text-editor">
280
+        <state relative-caret-position="150">
281
+          <caret line="10" column="48" selection-start-line="10" selection-start-column="48" selection-end-line="10" selection-end-column="48" />
282
+          <folding>
283
+            <element signature="imports" expanded="true" />
284
+          </folding>
285
+        </state>
286
+      </provider>
287
+    </entry>
288
+    <entry file="file://$PROJECT_DIR$/pom.xml">
289
+      <provider selected="true" editor-type-id="text-editor">
290
+        <state relative-caret-position="278">
291
+          <caret line="29" column="21" lean-forward="true" selection-start-line="25" selection-start-column="7" selection-end-line="29" selection-end-column="21" />
292
+        </state>
293
+      </provider>
294
+    </entry>
295
+  </component>
296
+  <component name="masterDetails">
297
+    <states>
298
+      <state key="ArtifactsStructureConfigurable.UI">
299
+        <settings>
300
+          <artifact-editor />
301
+          <splitter-proportions>
302
+            <option name="proportions">
303
+              <list>
304
+                <option value="0.2" />
305
+              </list>
306
+            </option>
307
+          </splitter-proportions>
308
+        </settings>
309
+      </state>
310
+      <state key="FacetStructureConfigurable.UI">
311
+        <settings>
312
+          <last-edited>No facets are configured</last-edited>
313
+          <splitter-proportions>
314
+            <option name="proportions">
315
+              <list>
316
+                <option value="0.2" />
317
+              </list>
318
+            </option>
319
+          </splitter-proportions>
320
+        </settings>
321
+      </state>
322
+      <state key="GlobalLibrariesConfigurable.UI">
323
+        <settings>
324
+          <splitter-proportions>
325
+            <option name="proportions">
326
+              <list>
327
+                <option value="0.2" />
328
+              </list>
329
+            </option>
330
+          </splitter-proportions>
331
+        </settings>
332
+      </state>
333
+      <state key="JdkListConfigurable.UI">
334
+        <settings>
335
+          <last-edited>1.8</last-edited>
336
+          <splitter-proportions>
337
+            <option name="proportions">
338
+              <list>
339
+                <option value="0.2" />
340
+              </list>
341
+            </option>
342
+          </splitter-proportions>
343
+        </settings>
344
+      </state>
345
+      <state key="ModuleStructureConfigurable.UI">
346
+        <settings>
347
+          <last-edited>ORM_Lab</last-edited>
348
+          <splitter-proportions>
349
+            <option name="proportions">
350
+              <list>
351
+                <option value="0.2" />
352
+                <option value="0.6" />
353
+              </list>
354
+            </option>
355
+          </splitter-proportions>
356
+        </settings>
357
+      </state>
358
+      <state key="ProjectJDKs.UI">
359
+        <settings>
360
+          <last-edited>1.8</last-edited>
361
+          <splitter-proportions>
362
+            <option name="proportions">
363
+              <list>
364
+                <option value="0.2" />
365
+              </list>
366
+            </option>
367
+          </splitter-proportions>
368
+        </settings>
369
+      </state>
370
+      <state key="ProjectLibrariesConfigurable.UI">
371
+        <settings>
372
+          <last-edited>Maven: com.j256.ormlite:ormlite-core:4.48</last-edited>
373
+          <splitter-proportions>
374
+            <option name="proportions">
375
+              <list>
376
+                <option value="0.2" />
377
+              </list>
378
+            </option>
379
+          </splitter-proportions>
380
+        </settings>
381
+      </state>
382
+    </states>
383
+  </component>
384
+</project>

+ 2
- 0
ORM_Lab.iml Voir le fichier

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

+ 35
- 0
pom.xml Voir le fichier

@@ -0,0 +1,35 @@
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>org.jennchao.lab</groupId>
8
+    <artifactId>lab</artifactId>
9
+    <version>1.0-SNAPSHOT</version>
10
+    <dependencies>
11
+        <!-- https://mvnrepository.com/artifact/com.j256.ormlite/ormlite-core -->
12
+        <dependency>
13
+            <groupId>com.j256.ormlite</groupId>
14
+            <artifactId>ormlite-core</artifactId>
15
+            <version>4.48</version>
16
+        </dependency>
17
+
18
+        <!-- https://mvnrepository.com/artifact/com.j256.ormlite/ormlite-jdbc -->
19
+        <dependency>
20
+            <groupId>com.j256.ormlite</groupId>
21
+            <artifactId>ormlite-jdbc</artifactId>
22
+            <version>4.48</version>
23
+        </dependency>
24
+
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
+
34
+
35
+</project>

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

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

+ 67
- 0
src/main/java/AccountApp.java Voir le fichier

@@ -0,0 +1,67 @@
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
+    private final static String YOURUSERNAME = "root";
11
+    private final static String YOURPASSWORD = "";
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, YOURUSERNAME, YOURPASSWORD);
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
+        // create an instance of Account
44
+        String name = "Jim Coakley";
45
+        Account account = new Account(name);
46
+
47
+        // persist the account object to the database
48
+        accountDao.create(account);
49
+        int id = account.getId();
50
+        System.out.println(id);
51
+        // assign a password
52
+        account.setPassword("_secret");
53
+        // update the database after changing the object
54
+        accountDao.update(account);
55
+        // delete the account
56
+        //accountDao.deleteById(id);
57
+    }
58
+
59
+    /**
60
+     * Setup our  DAOs
61
+     */
62
+    private void setupDao(ConnectionSource connectionSource) throws Exception {
63
+
64
+        accountDao = DaoManager.createDao(connectionSource, Account.class);
65
+
66
+    }
67
+}

BIN
target/classes/Account.class Voir le fichier


BIN
target/classes/AccountApp.class Voir le fichier