From 22caee3d036b6ec34d6045dc7354185919a9d4fc Mon Sep 17 00:00:00 2001 From: feelgood1987 Date: Sat, 30 Nov 2024 17:03:09 +0300 Subject: [PATCH 1/3] feat: add Persian and Turkish localization files for application messages --- src/main/resources/messages/messages_fa.properties | 9 +++++++++ src/main/resources/messages/messages_tr.properties | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/main/resources/messages/messages_fa.properties create mode 100644 src/main/resources/messages/messages_tr.properties diff --git a/src/main/resources/messages/messages_fa.properties b/src/main/resources/messages/messages_fa.properties new file mode 100644 index 000000000..a68a21c77 --- /dev/null +++ b/src/main/resources/messages/messages_fa.properties @@ -0,0 +1,9 @@ +welcome=خوش آمدید +required=الزامی +notFound=یافت نشد +duplicate=قبلا استفاده شده +nonNumeric=باید عددی باشد +duplicateFormSubmission=ارسال تکراری فرم مجاز نیست +typeMismatch.date=تاریخ نامعتبر +typeMismatch.birthDate=تاریخ تولد نامعتبر + diff --git a/src/main/resources/messages/messages_tr.properties b/src/main/resources/messages/messages_tr.properties new file mode 100644 index 000000000..1020566aa --- /dev/null +++ b/src/main/resources/messages/messages_tr.properties @@ -0,0 +1,9 @@ +welcome=hoş geldiniz +required=gerekli +notFound=bulunamadı +duplicate=zaten kullanılıyor +nonNumeric=sadece sayısal olmalıdır +duplicateFormSubmission=Formun tekrar gönderilmesine izin verilmez +typeMismatch.date=geçersiz tarih +typeMismatch.birthDate=geçersiz tarih + From ee8f8dcdad3f3c8195ec57894411d160dd9826f0 Mon Sep 17 00:00:00 2001 From: Antoine Rey Date: Thu, 12 Dec 2024 08:16:17 +0100 Subject: [PATCH 2/3] 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 f1594013a..e15a3247f 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 3/3] 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 03fd26c93..1fdc77cec 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) {