This commit is contained in:
2025-09-27 23:55:09 -04:00
parent 558ee54443
commit b02c9546d9
9 changed files with 11 additions and 10 deletions

3
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"java.configuration.updateBuildConfiguration": "interactive"
}

View File

@@ -11,9 +11,6 @@ plugins {
id 'application' id 'application'
} }
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
application { application {
mainClass = 'lodge.TestReservations' mainClass = 'lodge.TestReservations'
} }
@@ -23,15 +20,17 @@ sourceSets {
java { java {
srcDirs = ['src/java'] srcDirs = ['src/java']
} }
runtimeClasspath = files("$projectDir/libs/*.jars")
} }
} }
repositories { repositories {
mavenCentral()
fileTree(dir:'libs', include:'*.jar') fileTree(dir:'libs', include:'*.jar')
} }
dependencies { dependencies {
implementation files('libs/gson-2.13.1.jar') implementation 'com.google.code.gson:gson:2.13.2'
} }
jar { jar {

View File

@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
networkTimeout=10000 networkTimeout=10000
validateDistributionUrl=true validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME

0
gradlew vendored Normal file → Executable file
View File

Binary file not shown.

Binary file not shown.

View File

@@ -1 +1 @@
{ "Account":{"account_number": "A1450981765","phone_number": "701-456-7890","mailing_address": { "Address":{"street": "10 wilco ave","city": "wilco","state": "WY","zip": "82801"}},"email_address": { "EmailAddress":{"email": "wilco@wyommin.net"}},"reservations":[]}} { "Account":{"account_number": "A1450981765","phone_number": "701-456-7890","mailing_address": { "Address":{"street": "10 wilco ave","city": "wilco","state": "WY","zip": "82801"}},"email_address": { "EmailAddress":{"email": "wilco@wyommin.net"}},"reservations":[{"CabinReservation":{"reservation_number":"R0535276622"}},{"HouseReservation":{"reservation_number":"R0499811708"}}]}}

View File

@@ -53,7 +53,7 @@ digraph TestAccountLoadSequence {
actor2_event2 -> actor2_event2 ->
actor2_bottom; actor2_bottom;
// And one more time. // Again
actor3_event2 actor3_event2
actor3_event3 actor3_event3
@@ -62,13 +62,12 @@ digraph TestAccountLoadSequence {
actor3_event3 -> actor3_event3 ->
actor3_bottom; actor3_bottom;
// We connect each event src/dest. First we make sure they // Connect each event src/dest. vertically aligned.
// are vertically aligned.
{rank=same; actor1_event1 actor2_event1} {rank=same; actor1_event1 actor2_event1}
{rank=same; actor2_event2 actor3_event2} {rank=same; actor2_event2 actor3_event2}
{ranke=same; actor3_event3 actor1_event3} {ranke=same; actor3_event3 actor1_event3}
// Finally, we connect the dots. // Connect the dots.
edge [constraint=false, arrowhead=normal]; edge [constraint=false, arrowhead=normal];
actor1_event1 -> actor2_event1 [xlabel="AddAccount(Acount)"]; actor1_event1 -> actor2_event1 [xlabel="AddAccount(Acount)"];