Open magaton opened 7 months ago
None
)[!TIP] I can email you next time I complete a pull request if you set up your email here!
I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.
src/main/java/org/springframework/samples/petclinic/model/Person.java
✓ https://github.com/magaton/spring-petclinic/commit/22331e8ede8eb0e80804b5ecbc5e76e2470095b6 Edit
Modify src/main/java/org/springframework/samples/petclinic/model/Person.java with contents:
• Remove the `firstName` and `lastName` fields.
• Add a new `String` field named `name` with appropriate JPA annotations to map it to a database column named "name".
• Modify the getter and setter methods to work with the new `name` field.
--- +++ @@ -27,28 +27,16 @@ @MappedSuperclass public class Person extends BaseEntity { - @Column(name = "first_name") + @Column(name = "name") @NotBlank - private String firstName; + private String name; - @Column(name = "last_name") - @NotBlank - private String lastName; - - public String getFirstName() { - return this.firstName; + public String getName() { + return this.name; } - public void setFirstName(String firstName) { - this.firstName = firstName; - } - - public String getLastName() { - return this.lastName; - } - - public void setLastName(String lastName) { - this.lastName = lastName; + public void setName(String name) { + this.name = name; } }
src/main/java/org/springframework/samples/petclinic/model/Person.java
✓ Edit
Check src/main/java/org/springframework/samples/petclinic/model/Person.java with contents:
Ran GitHub Actions for 22331e8ede8eb0e80804b5ecbc5e76e2470095b6:
src/main/resources/templates/owners/createOrUpdateOwnerForm.html
✓ https://github.com/magaton/spring-petclinic/commit/5fb1f14e6c4795501a0ac15401b00a74564efb37 Edit
Modify src/main/resources/templates/owners/createOrUpdateOwnerForm.html with contents:
• Replace the input fields for 'First Name' and 'Last Name' with a single input field for 'Name'.
--- +++ @@ -7,9 +7,7 @@
Replace "first name" and "last name" fields with single field "name" for all the users of the system.
Checklist
- [X] Modify `src/main/java/org/springframework/samples/petclinic/model/Person.java` ✓ https://github.com/magaton/spring-petclinic/commit/22331e8ede8eb0e80804b5ecbc5e76e2470095b6 [Edit](https://github.com/magaton/spring-petclinic/edit/sweep/replace_first_name_and_last_name_with_na/src/main/java/org/springframework/samples/petclinic/model/Person.java) - [X] Running GitHub Actions for `src/main/java/org/springframework/samples/petclinic/model/Person.java` ✓ [Edit](https://github.com/magaton/spring-petclinic/edit/sweep/replace_first_name_and_last_name_with_na/src/main/java/org/springframework/samples/petclinic/model/Person.java) - [X] Modify `src/main/resources/templates/owners/createOrUpdateOwnerForm.html` ✓ https://github.com/magaton/spring-petclinic/commit/5fb1f14e6c4795501a0ac15401b00a74564efb37 [Edit](https://github.com/magaton/spring-petclinic/edit/sweep/replace_first_name_and_last_name_with_na/src/main/resources/templates/owners/createOrUpdateOwnerForm.html) - [X] Running GitHub Actions for `src/main/resources/templates/owners/createOrUpdateOwnerForm.html` ✓ [Edit](https://github.com/magaton/spring-petclinic/edit/sweep/replace_first_name_and_last_name_with_na/src/main/resources/templates/owners/createOrUpdateOwnerForm.html) - [X] Modify `src/main/resources/templates/pets/createOrUpdateVisitForm.html` ✓ https://github.com/magaton/spring-petclinic/commit/52cb1848c7322fed332274b951e20ca9ef6c1d95 [Edit](https://github.com/magaton/spring-petclinic/edit/sweep/replace_first_name_and_last_name_with_na/src/main/resources/templates/pets/createOrUpdateVisitForm.html) - [X] Running GitHub Actions for `src/main/resources/templates/pets/createOrUpdateVisitForm.html` ✓ [Edit](https://github.com/magaton/spring-petclinic/edit/sweep/replace_first_name_and_last_name_with_na/src/main/resources/templates/pets/createOrUpdateVisitForm.html) - [X] Modify `src/main/resources/db/h2/schema.sql` ✓ https://github.com/magaton/spring-petclinic/commit/a123c7d78a3e06c7f4243bb7faac93ed5c113551 [Edit](https://github.com/magaton/spring-petclinic/edit/sweep/replace_first_name_and_last_name_with_na/src/main/resources/db/h2/schema.sql) - [X] Running GitHub Actions for `src/main/resources/db/h2/schema.sql` ✓ [Edit](https://github.com/magaton/spring-petclinic/edit/sweep/replace_first_name_and_last_name_with_na/src/main/resources/db/h2/schema.sql) - [X] Modify `src/main/resources/db/postgres/data.sql` ✓ https://github.com/magaton/spring-petclinic/commit/964204b4110c17a881c228fb37026405c29f934f [Edit](https://github.com/magaton/spring-petclinic/edit/sweep/replace_first_name_and_last_name_with_na/src/main/resources/db/postgres/data.sql) - [X] Running GitHub Actions for `src/main/resources/db/postgres/data.sql` ✓ [Edit](https://github.com/magaton/spring-petclinic/edit/sweep/replace_first_name_and_last_name_with_na/src/main/resources/db/postgres/data.sql) - [X] Modify `src/main/resources/db/h2/data.sql` ✓ https://github.com/magaton/spring-petclinic/commit/93fe8213faf166d02bfaff935ce33e679aff7d2e [Edit](https://github.com/magaton/spring-petclinic/edit/sweep/replace_first_name_and_last_name_with_na/src/main/resources/db/h2/data.sql) - [X] Running GitHub Actions for `src/main/resources/db/h2/data.sql` ✓ [Edit](https://github.com/magaton/spring-petclinic/edit/sweep/replace_first_name_and_last_name_with_na/src/main/resources/db/h2/data.sql) - [X] Modify `src/main/java/org/springframework/samples/petclinic/owner/Owner.java` ✓ https://github.com/magaton/spring-petclinic/commit/c3009a714d2f73ea7cf50c93ddd0dfcd2020ec06 [Edit](https://github.com/magaton/spring-petclinic/edit/sweep/replace_first_name_and_last_name_with_na/src/main/java/org/springframework/samples/petclinic/owner/Owner.java) - [X] Running GitHub Actions for `src/main/java/org/springframework/samples/petclinic/owner/Owner.java` ✓ [Edit](https://github.com/magaton/spring-petclinic/edit/sweep/replace_first_name_and_last_name_with_na/src/main/java/org/springframework/samples/petclinic/owner/Owner.java)