Commit graph

995 commits

Author SHA1 Message Date
Stéphane Nicoll
684adfe2ba Merge pull request #2016 from mhalbritter
* pr/2016:
  Upgrade to Spring Boot 4.0.0-M3
  Add NullAway and JSpecify annotations
  Upgrade to Spring Boot 4.0.0-M2

Closes gh-2016
2025-10-14 12:26:25 +02:00
Stéphane Nicoll
47be0ea24f Upgrade to Spring Boot 4.0.0-M3
On the heels of the Spring Boot 4 upgrade, this commit upgrade to the
latest milestone and align the errorprone and NullAway versions.

See gh-2016
2025-10-14 12:25:21 +02:00
Moritz Halbritter
a0aea8e8f8 Add NullAway and JSpecify annotations
See gh-2016

Signed-off-by: Moritz Halbritter <moritz.halbritter@broadcom.com>
2025-10-14 12:13:13 +02:00
Moritz Halbritter
3aa79e3944 Upgrade to Spring Boot 4.0.0-M2
See gh-2016

Signed-off-by: Moritz Halbritter <moritz.halbritter@broadcom.com>
2025-10-14 12:13:03 +02:00
jang8584
66747e344e feat: enhance error page with localized messages for status codes(1)
Some checks failed
Java CI with Gradle / build (17) (push) Failing after 1m56s
Java CI with Maven / build (17) (push) Successful in 4m22s
Signed-off-by: jang8584 <jang8584@gmail.com>
2025-10-14 08:48:02 +01:00
jang8584
b2aee1d14a feat: enhance error page with localized messages for status codes
Signed-off-by: jang8584 <jang8584@gmail.com>
2025-10-14 08:48:02 +01:00
bansalbhumika13-beep
438adfd4d8 docs: update README with note about legacy presentation
The Speakerdeck presentation linked in the README refers to a
pre–Spring Boot version of Petclinic. Added a note clarifying
that the slides are outdated and pointing readers to the
repository/docs for the current Spring Boot–based implementation.


Signed-off-by: bansalbhumika13-beep <bansalbhumika13@gmail.com>
2025-10-14 08:18:02 +01:00
Philippe Marschall
cf2931f881 Remove unused imports
Signed-off-by: Philippe Marschall <philippe.marschall@gmail.com>
2025-10-14 08:13:38 +01:00
shjung1999
196e5aa4b0 docs: capitalize 'JAR' in README for consistency 2025-10-14 07:51:19 +01:00
Patrick Baumgartner
b26f235250 Update to current versions
Some checks failed
Deploy and Test Cluster / deploy-and-test-cluster (push) Successful in 1m18s
Java CI with Gradle / build (17) (push) Failing after 1m55s
Java CI with Maven / build (17) (push) Successful in 5m5s
Signed-off-by: Patrick Baumgartner <contact@patbaumgartner.com>
2025-10-06 19:23:19 +01:00
dejan2609
30aab0ae76 Maven and Gradle version upgrades
Some checks failed
Java CI with Gradle / build (17) (push) Failing after 5s
Java CI with Maven / build (17) (push) Successful in 4m37s
details:
* Gradle changes:
 ** redundant 'apply' plugin declarations are removed
 ** java 'sourceCompatibility' removed in favor of 'toolchain'
* Gradle version upgrade: 8.14 -->> 8.14.3
* Maven version upgrade: 3.9.9 -->> 3.9.10

related links:
 * https://docs.gradle.org/8.14.1/release-notes.html
 * https://docs.gradle.org/8.14.2/release-notes.html
 * https://docs.gradle.org/8.14.3/release-notes.html
 * https://maven.apache.org/docs/3.9.10/release-notes.html
 * https://committing-crimes.com/articles/2024-10-30-using-gradle-toolchains-properly
 * https://docs.gradle.org/8.14.3/userguide/building_java_projects.html#sec:java_cross_compilation

Signed-off-by: dejan2609 <dejan2609@gmail.com>
2025-07-05 17:48:19 +01:00
Denis Fuenzalida
f9399b7a9f Fix typo in visits form which caused button to miss its text
Some checks failed
Java CI with Gradle / build (17) (push) Failing after 1s
Java CI with Maven / build (17) (push) Has been cancelled
Signed-off-by: Denis Fuenzalida <denis.fuenzalida@gmail.com>
2025-06-14 07:45:06 +01:00
Patrick Baumgartner
67643c4137 Remove Reactor workaround for AOT
Some checks failed
Java CI with Gradle / build (17) (push) Failing after 1s
Java CI with Maven / build (17) (push) Failing after 1s
Signed-off-by: Patrick Baumgartner <contact@patbaumgartner.com>
2025-06-13 13:04:05 +01:00
Patrick Baumgartner
cefaf55dd1 Downgrading to mysql 9.2
Some checks failed
Java CI with Gradle / build (17) (push) Failing after 1s
Java CI with Maven / build (17) (push) Failing after 1s
Deploy and Test Cluster / deploy-and-test-cluster (push) Successful in 1m20s
- MySQL 9.3 does not work with testcontainers 1.21.0. Database container terminates with errors

Signed-off-by: Patrick Baumgartner <contact@patbaumgartner.com>
2025-06-05 12:18:10 +01:00
Patrick Baumgartner
2e61f19c66 Updated Copyright to year 2025
Signed-off-by: Patrick Baumgartner <contact@patbaumgartner.com>
2025-06-05 12:18:10 +01:00
Patrick Baumgartner
9faad25ec3 Cleanup maven-enforcer-plugin message
Signed-off-by: Patrick Baumgartner <contact@patbaumgartner.com>
2025-06-05 12:18:10 +01:00
Patrick Baumgartner
47dfd4f388 Cleanup Java Classes
Signed-off-by: Patrick Baumgartner <contact@patbaumgartner.com>
2025-06-05 12:18:10 +01:00
Patrick Baumgartner
142321aa3e Extracted findPetTypes
- Extracted find by findPetTypes because of failing tests
- Extracting helped to keep one repository responsible for an entity type
- Seems like Spring Data is more strict and treats PetType as DTO and generated a Costructor NEW query
- Current approach treats it still like an entity

Signed-off-by: Patrick Baumgartner <contact@patbaumgartner.com>
2025-06-05 12:18:10 +01:00
Patrick Baumgartner
b21890c126 Aligned postgres properties with mysql properties
Signed-off-by: Patrick Baumgartner <contact@patbaumgartner.com>
2025-06-05 12:18:10 +01:00
Patrick Baumgartner
d44ad42886 Upgrading to Spring Boot 3.5
Signed-off-by: Patrick Baumgartner <contact@patbaumgartner.com>
2025-06-05 12:18:10 +01:00
Patrick Baumgartner
4a021e4ccf Upgraded databases
Signed-off-by: Patrick Baumgartner <contact@patbaumgartner.com>
2025-06-05 12:18:10 +01:00
Patrick Baumgartner
9264c4813f Upgrading gradle wrapper to current version
Signed-off-by: Patrick Baumgartner <contact@patbaumgartner.com>
2025-06-05 12:18:10 +01:00
Patrick Baumgartner
af8645561b Cleanup HTML files
- Fixed broken paging and aligned vetList and OwnersList
- Adding Doctype for consistency
- Removed html5shim and respond for IE < 9
- Reformatting HTML

Signed-off-by: Patrick Baumgartner <contact@patbaumgartner.com>
2025-06-05 12:18:10 +01:00
Antoine Rey
3a931080d4 Remove unused findAll method from OwnerRepository and related test setup
Some checks failed
Java CI with Gradle / build (17) (push) Failing after 1s
Java CI with Maven / build (17) (push) Failing after 1s
Signed-off-by: Antoine Rey <antoine.rey@free.fr>
2025-05-14 09:20:26 +01:00
anizmo
c5af32d5a1 Internationalization Enhancement
Some checks failed
Java CI with Gradle / build (17) (push) Failing after 1s
Java CI with Maven / build (17) (push) Failing after 1s
- Added test to ensure there are no string literals
- Added test to ensure a string is translated in all language files
- Added missing strings in properties
- Internationalized remaining strings flagged by the tests

Signed-off-by: anizmo <potdar.anuj@gmail.com>
2025-05-06 13:55:19 +01:00
anizmo
0c88f916db Adding strings for all other languages
Some checks failed
Java CI with Gradle / build (17) (push) Failing after 1s
Java CI with Maven / build (17) (push) Failing after 1s
- Added WebConfiguration class to change language using url param
- Added text from messages to html files wherever required
- Added String to all other languages

Closes #1854

Signed-off-by: anizmo <potdar.anuj@gmail.com>
2025-04-22 09:35:23 +01:00
Dave Syer
332abbcb8a Note about windows shell
Some checks failed
Java CI with Gradle / build (17) (push) Failing after 1s
Java CI with Maven / build (17) (push) Failing after 1s
2025-03-27 16:10:48 +00:00
Antoine Rey
d7cc02f3d7 Use the java.util List.of() instead of the AssetJ Lists class
Some checks failed
Java CI with Gradle / build (17) (push) Failing after 2s
Java CI with Maven / build (17) (push) Failing after 2s
Signed-off-by: Antoine Rey <antoine.rey@free.fr>
2025-03-26 08:52:01 +00:00
Antoine Rey
fceca7754a Associating a <label> with a form control
Signed-off-by: Antoine Rey <antoine.rey@free.fr>
2025-03-26 08:51:24 +00:00
Antoine Rey
7f1af268ec Remove unnecessary @Autowired annotation from the PetTypeFormatter
Signed-off-by: Antoine Rey <antoine.rey@free.fr>
2025-03-26 08:51:00 +00:00
VishantOwO
2aa53f929d Fix pet update functionality
Some checks failed
Java CI with Gradle / build (17) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
- Fixed issue where editing a pet's type or name wasn't persisting
- Updated processUpdateForm to modify existing pet instead of
  adding new one
- Added proper handling of existing pet update

Fixes #1752
2025-03-01 15:29:15 +00:00
Dave Syer
6328d2c9dc Add DCO to README
Some checks failed
Java CI with Gradle / build (17) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
2025-02-12 14:58:27 +00:00
Dave Syer
7bce202762 Add dco config 2025-02-12 14:56:15 +00:00
Dave Syer
aa2273e955 Make sure MySQL test app works
Some checks failed
Java CI with Gradle / build (17) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
2025-02-04 09:15:54 +00:00
Dave Syer
1f89996e1f Update Spring Boot to 3.4.2 2025-02-04 08:47:30 +00:00
Antoine Rey
73d73609b5 Use Java Streams to sort the Specialty objects by their name
Signed-off-by: Antoine Rey <antoine.rey@free.fr>
2025-02-04 08:09:03 +00:00
Antoine Rey
b46b97a3e7 Remove unused Transactional import
Signed-off-by: Antoine Rey <antoine.rey@free.fr>
2025-02-04 08:07:44 +00:00
Antoine Rey
6148ddd967 Uses the date property of the Visit entity
Some checks failed
Java CI with Gradle / build (17) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
2024-12-17 16:09:29 +00:00
Antoine Rey
ee8f8dcdad Migrate Spring links for issues from Jira to GitHub 2024-12-17 16:07:36 +00:00
feelgood1987
22caee3d03 feat: add Persian and Turkish localization files for application messages 2024-12-04 12:47:27 +00:00
Dave Syer
42e2c74b0b Add a Dockerfile for dev environments other than codespaces 2024-11-28 14:45:59 +00:00
Dave Syer
3b90fac983 Fix occasional stale volume in postgres tests
Fixes #1522
2024-11-28 14:40:54 +00:00
Dave Syer
300597fc6c Update tomestamp for reproducible builds 2024-11-28 14:40:54 +00:00
YiXuan Ding
40a41375e6 Add new test file
-<modify>: remove `@Transactional`.
-<add>: create unit-test file related to `PetValidator`.
-<refactor>: move pet objects initialization to `@BeforeEach` setup.
2024-11-28 09:52:29 +00:00
YiXuan Ding
214a8fb87f <fix>: rename the DI variable name in constructor. 2024-11-28 09:51:42 +00:00
Patrick Baumgartner
a0ba075bd8 Futher updates for Spring Boot 3.4 2024-11-27 11:24:18 +00:00
Dave Syer
91f55a4f71 Versionless webjars (again)
Spring Boot 3.4 supports the webjars-locator-lite which in turn
supports native images, so we are back to versionless URLs for
webjars assets in templates.
2024-11-27 08:32:35 +00:00
Dave Syer
9f1cda1c08 Update to Boot 3.4 2024-11-25 11:04:49 +00:00
Andrey Litvitski
317562a170 Implement K8S deployment testing using Kind in GitHub Actions 2024-11-11 21:41:36 +00:00
YiXuan Ding
1cad4124b7 Refactor code logic
<refactor>: remove useless logic cod.
<refactor>: detele useless annotation which is provided by Jpa.
<refactor>: refactor implement of `findByLastName`, use Jpa to simplify query.
2024-11-11 17:55:34 +00:00