-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dierk Koenig
committed
Nov 1, 2023
1 parent
0671dc5
commit 63624cb
Showing
4 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package rooms | ||
|
||
class BookingController { | ||
|
||
static scaffold = Booking | ||
|
||
def tryBookings() { | ||
|
||
// make rooms | ||
// make people | ||
// make bookings | ||
|
||
// who booked room 1 ? | ||
|
||
// which rooms have been booked by person 1? | ||
|
||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package rooms | ||
|
||
class PersonController { | ||
|
||
static scaffold = Person | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package rooms | ||
|
||
class Booking { | ||
|
||
Person person | ||
Room room | ||
Date bookingDate | ||
|
||
static constraints = { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package rooms | ||
|
||
class Person { | ||
String firstName | ||
String lastName | ||
|
||
String toString() { "$firstName $lastName" } | ||
|
||
static constraints = { | ||
} | ||
} |