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 11package  org .soujava .demos .mongodb .document ;
22
3+ import  jakarta .data .repository .Delete ;
34import  jakarta .data .repository .Query ;
45import  jakarta .data .repository .Repository ;
6+ import  jakarta .data .repository .Save ;
57
68import  java .util .List ;
79
@@ -14,9 +16,14 @@ public interface RoomRepository {
1416    @ Query (" WHERE type <> 'VIP_SUITE' AND status = 'AVAILABLE' AND cleanStatus = 'CLEAN'" )
1517    List <Room > findAvailableStandardRooms ();
1618
17-     @ Query ("WHERE cleanStatus <> 'CLEAN' AND status !=  'OUT_OF_SERVICE'" )
19+     @ Query ("WHERE cleanStatus <> 'CLEAN' AND status <>  'OUT_OF_SERVICE'" )
1820    List <Room > findRoomsNeedingCleaning ();
1921
2022    @ Query ("WHERE smokingAllowed = true AND status = 'AVAILABLE'" )
2123    List <Room > findAvailableSmokingRooms ();
24+ 
25+     @ Save 
26+     void  save (List <Room > rooms );
27+ 
28+     void  deleteBy ();
2229}
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments