diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000000..365ab20372b
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,24 @@
+name: Java CI
+
+on:
+ push:
+ branches: [ main ]
+ pull_request:
+ branches: [ main ]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v3
+
+ - name: Set up Java
+ uses: actions/setup-java@v3
+ with:
+ java-version: '17'
+ distribution: 'temurin'
+
+ - name: Build with Maven
+ run: mvn clean install
\ No newline at end of file
diff --git a/src/main/java/org/springframework/samples/petclinic/owner/PetController.java b/src/main/java/org/springframework/samples/petclinic/owner/PetController.java
index e0689c694f1..7b3c006b548 100644
--- a/src/main/java/org/springframework/samples/petclinic/owner/PetController.java
+++ b/src/main/java/org/springframework/samples/petclinic/owner/PetController.java
@@ -121,7 +121,7 @@ public String processCreationForm(Owner owner, @Valid Pet pet, BindingResult res
owner.addPet(pet);
this.owners.save(owner);
- redirectAttributes.addFlashAttribute("message", "New Pet has been Added");
+ redirectAttributes.addFlashAttribute("message", "Pet successfully added!");
return "redirect:/owners/{ownerId}";
}
@@ -154,7 +154,7 @@ public String processUpdateForm(Owner owner, @Valid Pet pet, BindingResult resul
}
updatePetDetails(owner, pet);
- redirectAttributes.addFlashAttribute("message", "Pet details has been edited");
+ redirectAttributes.addFlashAttribute("message", "Pet updated successfully!");
return "redirect:/owners/{ownerId}";
}
diff --git a/src/main/resources/templates/owners/ownersList.html b/src/main/resources/templates/owners/ownersList.html
index 01223c1c57a..a458f6605d3 100644
--- a/src/main/resources/templates/owners/ownersList.html
+++ b/src/main/resources/templates/owners/ownersList.html
@@ -4,13 +4,13 @@
- Owners
+ Pet Owners Directory
- | Name |
- Address |
+ Owner Name |
+ Home Address |
City |
Telephone |
Pets |
diff --git a/src/main/resources/templates/vets/vetList.html b/src/main/resources/templates/vets/vetList.html
index e40fd654e47..3e8ba811227 100644
--- a/src/main/resources/templates/vets/vetList.html
+++ b/src/main/resources/templates/vets/vetList.html
@@ -4,13 +4,13 @@
- Veterinarians
+ Veterinarian Directory
- | Name |
- Specialties |
+ Veterinarian Name |
+ Areas of Expertise |