diff --git a/build/web/WEB-INF/classes/services/RoomService.class b/build/web/WEB-INF/classes/services/RoomService.class index 11f622a..ccb94e9 100644 Binary files a/build/web/WEB-INF/classes/services/RoomService.class and b/build/web/WEB-INF/classes/services/RoomService.class differ diff --git a/src/java/services/RoomService.java b/src/java/services/RoomService.java index f4477eb..7416553 100644 --- a/src/java/services/RoomService.java +++ b/src/java/services/RoomService.java @@ -150,7 +150,7 @@ public Response deleteRoom(@PathParam("id") int id) public Room deleteRoomDB(int id){ Room room=queryRoomwithid(id); - if((room!=null)&&(room.getRenter()==null)){ + if(room!=null){ em.getTransaction().begin(); if(room.getRenter()!=null ) {