Browse Source

fixed method in userRepo

Kris Blassingame 6 years ago
parent
commit
2807c9eb87

+ 100
- 36
Backend/.idea/workspace.xml View File

2
 <project version="4">
2
 <project version="4">
3
   <component name="ChangeListManager">
3
   <component name="ChangeListManager">
4
     <list default="true" id="c7322421-434b-4b5d-bbb0-6cbb0ec544c2" name="Default" comment="">
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
       <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" />
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
     </list>
6
     </list>
9
     <ignored path="$PROJECT_DIR$/target/" />
7
     <ignored path="$PROJECT_DIR$/target/" />
10
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
8
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
25
           </provider>
23
           </provider>
26
         </entry>
24
         </entry>
27
       </file>
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
       <file leaf-file-name="BikeProjectApplication.java" pinned="false" current-in-tab="false">
48
       <file leaf-file-name="BikeProjectApplication.java" pinned="false" current-in-tab="false">
29
         <entry file="file://$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/BikeProjectApplication.java">
49
         <entry file="file://$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/BikeProjectApplication.java">
30
           <provider selected="true" editor-type-id="text-editor">
50
           <provider selected="true" editor-type-id="text-editor">
34
           </provider>
54
           </provider>
35
         </entry>
55
         </entry>
36
       </file>
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
         <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
58
         <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
39
           <provider selected="true" editor-type-id="text-editor">
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
             </state>
62
             </state>
43
           </provider>
63
           </provider>
44
         </entry>
64
         </entry>
46
       <file leaf-file-name="UserRepository.java" pinned="false" current-in-tab="false">
66
       <file leaf-file-name="UserRepository.java" pinned="false" current-in-tab="false">
47
         <entry file="file://$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Repository/UserRepository.java">
67
         <entry file="file://$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Repository/UserRepository.java">
48
           <provider selected="true" editor-type-id="text-editor">
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
             </state>
71
             </state>
52
           </provider>
72
           </provider>
53
         </entry>
73
         </entry>
54
       </file>
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
         <entry file="file://$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Controller/UserController.java">
76
         <entry file="file://$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Controller/UserController.java">
57
           <provider selected="true" editor-type-id="text-editor">
77
           <provider selected="true" editor-type-id="text-editor">
58
             <state relative-caret-position="570">
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
             </state>
80
             </state>
61
           </provider>
81
           </provider>
62
         </entry>
82
         </entry>
71
       <list>
91
       <list>
72
         <option value="$PROJECT_DIR$/.idea/workspace.xml" />
92
         <option value="$PROJECT_DIR$/.idea/workspace.xml" />
73
         <option value="$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Controller/UserController.java" />
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
         <option value="$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Repository/UserRepository.java" />
95
         <option value="$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Repository/UserRepository.java" />
75
       </list>
96
       </list>
76
     </option>
97
     </option>
95
       <foldersAlwaysOnTop value="true" />
116
       <foldersAlwaysOnTop value="true" />
96
     </navigator>
117
     </navigator>
97
     <panes>
118
     <panes>
98
-      <pane id="PackagesPane" />
99
-      <pane id="AndroidView" />
100
       <pane id="Scope" />
119
       <pane id="Scope" />
101
       <pane id="ProjectPane">
120
       <pane id="ProjectPane">
102
         <subPane>
121
         <subPane>
164
               <item name="com" type="462c0819:PsiDirectoryNode" />
183
               <item name="com" type="462c0819:PsiDirectoryNode" />
165
               <item name="passionProject" type="462c0819:PsiDirectoryNode" />
184
               <item name="passionProject" type="462c0819:PsiDirectoryNode" />
166
               <item name="bikeProject" type="462c0819:PsiDirectoryNode" />
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
             </path>
187
             </path>
180
             <path>
188
             <path>
181
               <item name="bikeProject" type="b2602c69:ProjectViewProjectNode" />
189
               <item name="bikeProject" type="b2602c69:ProjectViewProjectNode" />
193
           <select />
201
           <select />
194
         </subPane>
202
         </subPane>
195
       </pane>
203
       </pane>
204
+      <pane id="AndroidView" />
205
+      <pane id="PackagesPane" />
196
     </panes>
206
     </panes>
197
   </component>
207
   </component>
198
   <component name="PropertiesComponent">
208
   <component name="PropertiesComponent">
285
       <updated>1532203450565</updated>
295
       <updated>1532203450565</updated>
286
       <workItem from="1532203456370" duration="186000" />
296
       <workItem from="1532203456370" duration="186000" />
287
       <workItem from="1532203659637" duration="1286000" />
297
       <workItem from="1532203659637" duration="1286000" />
298
+      <workItem from="1532355673222" duration="239000" />
288
     </task>
299
     </task>
289
     <servers />
300
     <servers />
290
   </component>
301
   </component>
291
   <component name="TimeTrackingManager">
302
   <component name="TimeTrackingManager">
292
-    <option name="totallyTimeSpent" value="1472000" />
303
+    <option name="totallyTimeSpent" value="1711000" />
293
   </component>
304
   </component>
294
   <component name="ToolWindowManager">
305
   <component name="ToolWindowManager">
295
     <frame x="-246" y="-1057" width="1920" height="1057" extended-state="0" />
306
     <frame x="-246" y="-1057" width="1920" height="1057" extended-state="0" />
307
       <window_info id="UI Designer" order="2" />
318
       <window_info id="UI Designer" order="2" />
308
       <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
319
       <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
309
       <window_info anchor="bottom" id="TODO" order="6" />
320
       <window_info anchor="bottom" id="TODO" order="6" />
310
-      <window_info anchor="bottom" id="Messages" order="7" weight="0.32916668" />
311
       <window_info anchor="right" id="Palette&#9;" order="3" />
321
       <window_info anchor="right" id="Palette&#9;" order="3" />
312
       <window_info id="Image Layers" order="2" />
322
       <window_info id="Image Layers" order="2" />
313
       <window_info anchor="bottom" id="Java Enterprise" order="7" />
323
       <window_info anchor="bottom" id="Java Enterprise" order="7" />
316
       <window_info anchor="bottom" id="Run" order="2" weight="0.32916668" />
326
       <window_info anchor="bottom" id="Run" order="2" weight="0.32916668" />
317
       <window_info anchor="bottom" id="Spring" order="7" />
327
       <window_info anchor="bottom" id="Spring" order="7" />
318
       <window_info anchor="bottom" id="Terminal" order="7" />
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
       <window_info anchor="right" id="Bean Validation" order="3" />
330
       <window_info anchor="right" id="Bean Validation" order="3" />
321
       <window_info id="Web" order="2" side_tool="true" />
331
       <window_info id="Web" order="2" side_tool="true" />
322
       <window_info anchor="right" id="Theme Preview" order="3" />
332
       <window_info anchor="right" id="Theme Preview" order="3" />
324
       <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
334
       <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
325
       <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
335
       <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
326
       <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
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
       <window_info anchor="bottom" id="Message" order="0" />
338
       <window_info anchor="bottom" id="Message" order="0" />
328
       <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
339
       <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
329
       <window_info anchor="bottom" id="Find" order="1" />
340
       <window_info anchor="bottom" id="Find" order="1" />
339
     <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
350
     <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
340
       <provider selected="true" editor-type-id="text-editor">
351
       <provider selected="true" editor-type-id="text-editor">
341
         <state relative-caret-position="60">
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
         </state>
354
         </state>
344
       </provider>
355
       </provider>
345
     </entry>
356
     </entry>
350
         </state>
361
         </state>
351
       </provider>
362
       </provider>
352
     </entry>
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
     <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
385
     <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
354
       <provider selected="true" editor-type-id="text-editor">
386
       <provider selected="true" editor-type-id="text-editor">
355
         <state relative-caret-position="60">
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
         </state>
389
         </state>
358
       </provider>
390
       </provider>
359
     </entry>
391
     </entry>
364
         </state>
396
         </state>
365
       </provider>
397
       </provider>
366
     </entry>
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
       <provider selected="true" editor-type-id="text-editor">
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
         </state>
435
         </state>
372
       </provider>
436
       </provider>
373
     </entry>
437
     </entry>
374
     <entry file="file://$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Repository/UserRepository.java">
438
     <entry file="file://$PROJECT_DIR$/src/main/java/com/passionProject/bikeProject/Repository/UserRepository.java">
375
       <provider selected="true" editor-type-id="text-editor">
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
         </state>
442
         </state>
379
       </provider>
443
       </provider>
380
     </entry>
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
       <provider selected="true" editor-type-id="text-editor">
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
         </state>
449
         </state>
386
       </provider>
450
       </provider>
387
     </entry>
451
     </entry>

+ 1
- 0
Backend/src/main/java/com/passionProject/bikeProject/Repository/UserRepository.java View File

8
 @Repository
8
 @Repository
9
 public interface UserRepository extends JpaRepository<User, Long> {
9
 public interface UserRepository extends JpaRepository<User, Long> {
10
 
10
 
11
+    User findByUsername(String username);
11
 }
12
 }