From ee8f8dcdad3f3c8195ec57894411d160dd9826f0 Mon Sep 17 00:00:00 2001 From: Antoine Rey Date: Thu, 12 Dec 2024 08:16:17 +0100 Subject: [PATCH 1/2] Migrate Spring links for issues from Jira to GitHub --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f1594013a17..e15a3247f3d 100644 --- a/README.md +++ b/README.md @@ -147,9 +147,9 @@ Here is a list of them: | Name | Issue | |------|-------| -| Spring JDBC: simplify usage of NamedParameterJdbcTemplate | [SPR-10256](https://jira.springsource.org/browse/SPR-10256) and [SPR-10257](https://jira.springsource.org/browse/SPR-10257) | +| Spring JDBC: simplify usage of NamedParameterJdbcTemplate | [SPR-10256](https://github.com/spring-projects/spring-framework/issues/14889) and [SPR-10257](https://github.com/spring-projects/spring-framework/issues/14890) | | Bean Validation / Hibernate Validator: simplify Maven dependencies and backward compatibility |[HV-790](https://hibernate.atlassian.net/browse/HV-790) and [HV-792](https://hibernate.atlassian.net/browse/HV-792) | -| Spring Data: provide more flexibility when working with JPQL queries | [DATAJPA-292](https://jira.springsource.org/browse/DATAJPA-292) | +| Spring Data: provide more flexibility when working with JPQL queries | [DATAJPA-292](https://github.com/spring-projects/spring-data-jpa/issues/704) | ## Contributing From 6148ddd9671ccab86a3f0ae2dfa77d833b713ee8 Mon Sep 17 00:00:00 2001 From: Antoine Rey Date: Sun, 15 Dec 2024 18:36:30 +0100 Subject: [PATCH 2/2] Uses the date property of the Visit entity --- .../java/org/springframework/samples/petclinic/owner/Pet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/springframework/samples/petclinic/owner/Pet.java b/src/main/java/org/springframework/samples/petclinic/owner/Pet.java index 03fd26c9375..1fdc77cec2d 100644 --- a/src/main/java/org/springframework/samples/petclinic/owner/Pet.java +++ b/src/main/java/org/springframework/samples/petclinic/owner/Pet.java @@ -55,7 +55,7 @@ public class Pet extends NamedEntity { @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER) @JoinColumn(name = "pet_id") - @OrderBy("visit_date ASC") + @OrderBy("date ASC") private final Set visits = new LinkedHashSet<>(); public void setBirthDate(LocalDate birthDate) {