File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
src/main/java/org/soujava/demos/mongodb/document Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,23 @@ public class Room {
3030 @ Column
3131 private boolean underMaintenance ;
3232
33+
34+ public Room () {
35+ }
36+
37+ public Room (String id , int roomNumber ,
38+ RoomType type , RoomStatus status ,
39+ CleanStatus cleanStatus ,
40+ boolean smokingAllowed , boolean underMaintenance ) {
41+ this .id = id ;
42+ this .roomNumber = roomNumber ;
43+ this .type = type ;
44+ this .status = status ;
45+ this .cleanStatus = cleanStatus ;
46+ this .smokingAllowed = smokingAllowed ;
47+ this .underMaintenance = underMaintenance ;
48+ }
49+
3350 public String getId () {
3451 return id ;
3552 }
@@ -85,4 +102,9 @@ public String toString() {
85102 ", underMaintenance=" + underMaintenance +
86103 '}' ;
87104 }
105+
106+
107+ public static RoomBuilder builder () {
108+ return new RoomBuilder ();
109+ }
88110}
You can’t perform that action at this time.
0 commit comments