瀏覽代碼

fixed method in userRepo

Kris Blassingame 6 年之前
父節點
當前提交
2807c9eb87

+ 100
- 36
Backend/.idea/workspace.xml 查看文件

@@ -2,9 +2,7 @@
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4 4
     <list default="true" id="c7322421-434b-4b5d-bbb0-6cbb0ec544c2" name="Default" comment="">
5
-      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6 5
       <change beforePath="$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Repository/UserRepository.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Repository/UserRepository.java" afterDir="false" />
7
-      <change beforePath="$PROJECT_DIR$/target/classes/com/passionProject/bikeProject/Repository/UserRepository.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/com/passionProject/bikeProject/Repository/UserRepository.class" afterDir="false" />
8 6
     </list>
9 7
     <ignored path="$PROJECT_DIR$/target/" />
10 8
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@@ -25,6 +23,28 @@
25 23
           </provider>
26 24
         </entry>
27 25
       </file>
26
+      <file leaf-file-name="User.java" pinned="false" current-in-tab="false">
27
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Entity/User.java">
28
+          <provider selected="true" editor-type-id="text-editor">
29
+            <state relative-caret-position="75">
30
+              <caret line="8" column="13" selection-start-line="8" selection-start-column="13" selection-end-line="8" selection-end-column="13" />
31
+            </state>
32
+          </provider>
33
+        </entry>
34
+      </file>
35
+      <file leaf-file-name="UserService.java" pinned="false" current-in-tab="false">
36
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Service/UserService.java">
37
+          <provider selected="true" editor-type-id="text-editor">
38
+            <state relative-caret-position="225">
39
+              <caret line="22" column="38" selection-start-line="22" selection-start-column="38" selection-end-line="22" selection-end-column="38" />
40
+              <folding>
41
+                <element signature="e#578#579#0" expanded="true" />
42
+                <element signature="e#640#641#0" expanded="true" />
43
+              </folding>
44
+            </state>
45
+          </provider>
46
+        </entry>
47
+      </file>
28 48
       <file leaf-file-name="BikeProjectApplication.java" pinned="false" current-in-tab="false">
29 49
         <entry file="file://$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/BikeProjectApplication.java">
30 50
           <provider selected="true" editor-type-id="text-editor">
@@ -34,11 +54,11 @@
34 54
           </provider>
35 55
         </entry>
36 56
       </file>
37
-      <file leaf-file-name="workspace.xml" pinned="false" current-in-tab="true">
57
+      <file leaf-file-name="workspace.xml" pinned="false" current-in-tab="false">
38 58
         <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
39 59
           <provider selected="true" editor-type-id="text-editor">
40
-            <state relative-caret-position="2670">
41
-              <caret line="178" column="18" selection-end-line="382" selection-end-column="10" />
60
+            <state relative-caret-position="373">
61
+              <caret line="144" column="66" lean-forward="true" selection-start-line="144" selection-start-column="66" selection-end-line="144" selection-end-column="66" />
42 62
             </state>
43 63
           </provider>
44 64
         </entry>
@@ -46,17 +66,17 @@
46 66
       <file leaf-file-name="UserRepository.java" pinned="false" current-in-tab="false">
47 67
         <entry file="file://$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Repository/UserRepository.java">
48 68
           <provider selected="true" editor-type-id="text-editor">
49
-            <state relative-caret-position="120">
50
-              <caret line="11" lean-forward="true" selection-start-line="11" selection-end-line="11" />
69
+            <state relative-caret-position="135">
70
+              <caret line="12" lean-forward="true" selection-start-line="12" selection-end-line="12" />
51 71
             </state>
52 72
           </provider>
53 73
         </entry>
54 74
       </file>
55
-      <file leaf-file-name="UserController.java" pinned="false" current-in-tab="false">
75
+      <file leaf-file-name="UserController.java" pinned="false" current-in-tab="true">
56 76
         <entry file="file://$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Controller/UserController.java">
57 77
           <provider selected="true" editor-type-id="text-editor">
58 78
             <state relative-caret-position="570">
59
-              <caret line="44" column="68" lean-forward="true" selection-start-line="44" selection-start-column="68" selection-end-line="44" selection-end-column="68" />
79
+              <caret line="44" column="68" selection-start-line="44" selection-start-column="68" selection-end-line="44" selection-end-column="68" />
60 80
             </state>
61 81
           </provider>
62 82
         </entry>
@@ -71,6 +91,7 @@
71 91
       <list>
72 92
         <option value="$PROJECT_DIR$/.idea/workspace.xml" />
73 93
         <option value="$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Controller/UserController.java" />
94
+        <option value="$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Service/UserService.java" />
74 95
         <option value="$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Repository/UserRepository.java" />
75 96
       </list>
76 97
     </option>
@@ -95,8 +116,6 @@
95 116
       <foldersAlwaysOnTop value="true" />
96 117
     </navigator>
97 118
     <panes>
98
-      <pane id="PackagesPane" />
99
-      <pane id="AndroidView" />
100 119
       <pane id="Scope" />
101 120
       <pane id="ProjectPane">
102 121
         <subPane>
@@ -164,18 +183,7 @@
164 183
               <item name="com" type="462c0819:PsiDirectoryNode" />
165 184
               <item name="passionProject" type="462c0819:PsiDirectoryNode" />
166 185
               <item name="bikeProject" type="462c0819:PsiDirectoryNode" />
167
-              <item name="Controller" type="462c0819:PsiDirectoryNode" />
168
-            </path>
169
-            <path>
170
-              <item name="bikeProject" type="b2602c69:ProjectViewProjectNode" />
171
-              <item name="backEnd" type="462c0819:PsiDirectoryNode" />
172
-              <item name="src" type="462c0819:PsiDirectoryNode" />
173
-              <item name="main" type="462c0819:PsiDirectoryNode" />
174
-              <item name="java" type="462c0819:PsiDirectoryNode" />
175
-              <item name="com" type="462c0819:PsiDirectoryNode" />
176
-              <item name="passionProject" type="462c0819:PsiDirectoryNode" />
177
-              <item name="bikeProject" type="462c0819:PsiDirectoryNode" />
178
-              <item name="Repository" type="462c0819:PsiDirectoryNode" />
186
+              <item name="Service" type="462c0819:PsiDirectoryNode" />
179 187
             </path>
180 188
             <path>
181 189
               <item name="bikeProject" type="b2602c69:ProjectViewProjectNode" />
@@ -193,6 +201,8 @@
193 201
           <select />
194 202
         </subPane>
195 203
       </pane>
204
+      <pane id="AndroidView" />
205
+      <pane id="PackagesPane" />
196 206
     </panes>
197 207
   </component>
198 208
   <component name="PropertiesComponent">
@@ -285,11 +295,12 @@
285 295
       <updated>1532203450565</updated>
286 296
       <workItem from="1532203456370" duration="186000" />
287 297
       <workItem from="1532203659637" duration="1286000" />
298
+      <workItem from="1532355673222" duration="239000" />
288 299
     </task>
289 300
     <servers />
290 301
   </component>
291 302
   <component name="TimeTrackingManager">
292
-    <option name="totallyTimeSpent" value="1472000" />
303
+    <option name="totallyTimeSpent" value="1711000" />
293 304
   </component>
294 305
   <component name="ToolWindowManager">
295 306
     <frame x="-246" y="-1057" width="1920" height="1057" extended-state="0" />
@@ -307,7 +318,6 @@
307 318
       <window_info id="UI Designer" order="2" />
308 319
       <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
309 320
       <window_info anchor="bottom" id="TODO" order="6" />
310
-      <window_info anchor="bottom" id="Messages" order="7" weight="0.32916668" />
311 321
       <window_info anchor="right" id="Palette&#9;" order="3" />
312 322
       <window_info id="Image Layers" order="2" />
313 323
       <window_info anchor="bottom" id="Java Enterprise" order="7" />
@@ -316,7 +326,7 @@
316 326
       <window_info anchor="bottom" id="Run" order="2" weight="0.32916668" />
317 327
       <window_info anchor="bottom" id="Spring" order="7" />
318 328
       <window_info anchor="bottom" id="Terminal" order="7" />
319
-      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.25239617" />
329
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.2550586" />
320 330
       <window_info anchor="right" id="Bean Validation" order="3" />
321 331
       <window_info id="Web" order="2" side_tool="true" />
322 332
       <window_info anchor="right" id="Theme Preview" order="3" />
@@ -324,6 +334,7 @@
324 334
       <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
325 335
       <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
326 336
       <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
337
+      <window_info anchor="bottom" id="Messages" order="7" weight="0.32916668" />
327 338
       <window_info anchor="bottom" id="Message" order="0" />
328 339
       <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
329 340
       <window_info anchor="bottom" id="Find" order="1" />
@@ -339,7 +350,7 @@
339 350
     <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
340 351
       <provider selected="true" editor-type-id="text-editor">
341 352
         <state relative-caret-position="60">
342
-          <caret line="4" lean-forward="true" selection-start-line="4" selection-end-line="4" />
353
+          <caret line="4" selection-start-line="4" selection-end-line="4" />
343 354
         </state>
344 355
       </provider>
345 356
     </entry>
@@ -350,10 +361,31 @@
350 361
         </state>
351 362
       </provider>
352 363
     </entry>
364
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Repository/UserRepository.java">
365
+      <provider selected="true" editor-type-id="text-editor">
366
+        <state relative-caret-position="120">
367
+          <caret line="11" lean-forward="true" selection-start-line="11" selection-end-line="11" />
368
+        </state>
369
+      </provider>
370
+    </entry>
371
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Controller/UserController.java">
372
+      <provider selected="true" editor-type-id="text-editor">
373
+        <state relative-caret-position="570">
374
+          <caret line="44" column="68" lean-forward="true" selection-start-line="44" selection-start-column="68" selection-end-line="44" selection-end-column="68" />
375
+        </state>
376
+      </provider>
377
+    </entry>
378
+    <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
379
+      <provider selected="true" editor-type-id="text-editor">
380
+        <state relative-caret-position="2670">
381
+          <caret line="178" column="18" selection-end-line="382" selection-end-column="10" />
382
+        </state>
383
+      </provider>
384
+    </entry>
353 385
     <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
354 386
       <provider selected="true" editor-type-id="text-editor">
355 387
         <state relative-caret-position="60">
356
-          <caret line="4" selection-start-line="4" selection-end-line="4" />
388
+          <caret line="4" lean-forward="true" selection-start-line="4" selection-end-line="4" />
357 389
         </state>
358 390
       </provider>
359 391
     </entry>
@@ -364,24 +396,56 @@
364 396
         </state>
365 397
       </provider>
366 398
     </entry>
367
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Controller/UserController.java">
399
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/BikeProjectApplication.java">
368 400
       <provider selected="true" editor-type-id="text-editor">
369
-        <state relative-caret-position="570">
370
-          <caret line="44" column="68" lean-forward="true" selection-start-line="44" selection-start-column="68" selection-end-line="44" selection-end-column="68" />
401
+        <state relative-caret-position="75">
402
+          <caret line="6" column="13" selection-start-line="6" selection-start-column="13" selection-end-line="6" selection-end-column="13" />
403
+        </state>
404
+      </provider>
405
+    </entry>
406
+    <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
407
+      <provider selected="true" editor-type-id="text-editor">
408
+        <state relative-caret-position="373">
409
+          <caret line="144" column="66" lean-forward="true" selection-start-line="144" selection-start-column="66" selection-end-line="144" selection-end-column="66" />
410
+        </state>
411
+      </provider>
412
+    </entry>
413
+    <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
414
+      <provider selected="true" editor-type-id="text-editor">
415
+        <state relative-caret-position="60">
416
+          <caret line="4" selection-start-line="4" selection-end-line="4" />
417
+        </state>
418
+      </provider>
419
+    </entry>
420
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Entity/User.java">
421
+      <provider selected="true" editor-type-id="text-editor">
422
+        <state relative-caret-position="75">
423
+          <caret line="8" column="13" selection-start-line="8" selection-start-column="13" selection-end-line="8" selection-end-column="13" />
424
+        </state>
425
+      </provider>
426
+    </entry>
427
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Service/UserService.java">
428
+      <provider selected="true" editor-type-id="text-editor">
429
+        <state relative-caret-position="225">
430
+          <caret line="22" column="38" selection-start-line="22" selection-start-column="38" selection-end-line="22" selection-end-column="38" />
431
+          <folding>
432
+            <element signature="e#578#579#0" expanded="true" />
433
+            <element signature="e#640#641#0" expanded="true" />
434
+          </folding>
371 435
         </state>
372 436
       </provider>
373 437
     </entry>
374 438
     <entry file="file://$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Repository/UserRepository.java">
375 439
       <provider selected="true" editor-type-id="text-editor">
376
-        <state relative-caret-position="120">
377
-          <caret line="11" lean-forward="true" selection-start-line="11" selection-end-line="11" />
440
+        <state relative-caret-position="135">
441
+          <caret line="12" lean-forward="true" selection-start-line="12" selection-end-line="12" />
378 442
         </state>
379 443
       </provider>
380 444
     </entry>
381
-    <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
445
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Controller/UserController.java">
382 446
       <provider selected="true" editor-type-id="text-editor">
383
-        <state relative-caret-position="2670">
384
-          <caret line="178" column="18" selection-end-line="382" selection-end-column="10" />
447
+        <state relative-caret-position="570">
448
+          <caret line="44" column="68" selection-start-line="44" selection-start-column="68" selection-end-line="44" selection-end-column="68" />
385 449
         </state>
386 450
       </provider>
387 451
     </entry>

+ 1
- 0
Backend/src/main/java/com/passionProject/bikeProject/Repository/UserRepository.java 查看文件

@@ -8,4 +8,5 @@ import org.springframework.stereotype.Repository;
8 8
 @Repository
9 9
 public interface UserRepository extends JpaRepository<User, Long> {
10 10
 
11
+    User findByUsername(String username);
11 12
 }