File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/main/java/org/soujava/demos/mongodb/document Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
package org .soujava .demos .mongodb .document ;
2
2
3
+ import jakarta .data .repository .Delete ;
3
4
import jakarta .data .repository .Query ;
4
5
import jakarta .data .repository .Repository ;
6
+ import jakarta .data .repository .Save ;
5
7
6
8
import java .util .List ;
7
9
@@ -14,9 +16,14 @@ public interface RoomRepository {
14
16
@ Query (" WHERE type <> 'VIP_SUITE' AND status = 'AVAILABLE' AND cleanStatus = 'CLEAN'" )
15
17
List <Room > findAvailableStandardRooms ();
16
18
17
- @ Query ("WHERE cleanStatus <> 'CLEAN' AND status != 'OUT_OF_SERVICE'" )
19
+ @ Query ("WHERE cleanStatus <> 'CLEAN' AND status <> 'OUT_OF_SERVICE'" )
18
20
List <Room > findRoomsNeedingCleaning ();
19
21
20
22
@ Query ("WHERE smokingAllowed = true AND status = 'AVAILABLE'" )
21
23
List <Room > findAvailableSmokingRooms ();
24
+
25
+ @ Save
26
+ void save (List <Room > rooms );
27
+
28
+ void deleteBy ();
22
29
}
You can’t perform that action at this time.
0 commit comments