Commit graph

185 commits

Author SHA1 Message Date
Armo777
1ae24dd229 Добавил файлы для работы с миграцией Liquibase 2026-01-29 10:57:47 +03:00
Stéphane Nicoll
2beb2380a3 Remove outdated references to HSQLDB
Closes gh-2165
2025-12-30 09:34:29 +01:00
Philippe Marschall
fd4361b118 Use snake case physical naming strategy
Some checks failed
Java CI with Gradle / build (17) (push) Failing after 5s
Java CI with Maven / build (17) (push) Successful in 1m40s
Use snake case physical naming strategy to reduce the need to specify
column names.

Signed-off-by: Philippe Marschall <philippe.marschall@gmail.com>
2025-12-22 07:28:27 +00:00
henribon
8f08b38f2c fix: update MySQL user creation for MySQL 8.0+ compatibility
Some checks failed
Java CI with Gradle / build (25) (push) Failing after 2s
Java CI with Maven / build (25) (push) Successful in 1m24s
Deploy and Test Cluster / deploy-and-test-cluster (push) Failing after 4m10s
Signed-off-by: henribon <henribonrec@gmail.com>
2025-11-25 08:54:07 +00: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
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
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
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
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
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
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
feelgood1987
22caee3d03 feat: add Persian and Turkish localization files for application messages 2024-12-04 12:47:27 +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
João Bertholino
dff45cf70c fix: Temporarily removing accentuation from messages. 2024-11-05 08:27:02 +00:00
João Bertholino
bbb237928f feat: Adds support for the Portuguese language. 2024-10-20 17:25:23 +01:00
ruabooe
912de1648e feat: add russian 2024-10-20 12:08:50 +01:00
Patrick Baumgartner
f8001e0add Change chmod like other files 2024-09-30 21:41:01 +01:00
Sébastien Deleuze
d90e284621 Disable JPA Open Session In View
With the current codebase, it does not seems to be
needed anymore, so we disable it to provide better
performances.
2024-09-24 16:05:18 +01:00
Patrick Baumgartner
39cc7e160e Upgrade Dependencies 2024-05-25 17:00:35 +01:00
akan.tileubergenov
bf3bc29e56 Fix postgres data 2024-05-16 14:09:10 +01:00
shadab-stack
2fe96130c0 Confirmation messages displayed for 'Add, edit, or update' actions 2024-01-31 21:54:55 +00:00
Patrick Baumgartner
de0e3663c0 Update dependency 2023-11-26 09:08:45 +00:00
anthony-park
18266fec8b feat: Add a Korean message file to support at least one non-European language
This commit introduces a new Korean message file to the project. With this addition, the project now supports messages in languages other than European languages.

Resolves: #1299
2023-09-12 11:31:20 +01:00
bijomutta
3be289517d Add birthdate validation 2023-07-10 15:00:26 +01:00
Patrick Baumgartner
0d9e882e54
Upgrade for Spring Boot 3.1 (#1253)
* Upgrade for Spring Boot 3.1

* Remove 'encoding' because of Maven WARNING

* Extracting logo SVG into file

* Making logo src context-path aware

* Remove unused image
2023-05-26 18:56:00 +01:00
Patrick Baumgartner
0962ed7e8f Updating dependencies and docker containers to current versions
See #1157
2023-03-10 14:00:30 +00:00
Oliver Drotbohm
9ecdc1111e Polish Thymeleaf templates.
Make sure we use the suggested fragment inclusion syntax. Use th:insert instead of th:include. Use simpler URI path segment templating to avoid duplication of expressions.

Avoid trailing slashes in URIs creates as upcoming Spring Boot versions will not map the trailing slash flavors of defined URI mappings.
2022-10-25 21:27:58 +02:00
Sébastien Deleuze
a5cbb8505a
Use WebJars versioned URLs (#1099)
In order to improve efficiency (see spring-projects/spring-framework#27619)
and allow native image compatibility, this commit uses WebJars versioned URLs
which are supported out of the box on Spring Boot via /META-INF/resources
default resource location configuration, removing the need to use
webjars-locator-core dependency and WebJarsResourceResolver.

I have been able to measure a consistent 5% startup time improvement on
the JVM with that simple change on my local machine.
2022-10-16 16:12:23 +01:00
Dave Syer
0c1fa8e8e2 Update name of deprecated config property 2022-05-19 14:08:07 +00:00
Dave Syer
1db99dbb58 Update to Spring Boot 2.7.0 2022-05-19 14:07:16 +00:00
Dave Syer
5ecaccffe9 Make postgres data.sql properly idempotent
Fixes #936
2022-04-19 08:43:51 +00:00
Dave Syer
d381fb658c Use open session in view and populate model attrs
Open session in view was switched off accidentally a while ago. Also
the mapping changes recently meant that the changes to @Valid model
attributes were not being propagated correctly.

Fixes #946 and #947
2022-04-11 13:24:49 +00:00
Dave Syer
b559077f14 Remove manual id management in child entities
This is reverting a workaround for a Hibernate "feature". There's
no need for the child entities (Pet and Visit) to know about their
parent (foreign key). Hibernate can manage that just fine with a
@JoinColumn. But it needs a nullable foreign key column in the
DB schema. That's the downside. The upside is much less code in
Java.
2022-01-06 11:23:02 +00:00
Shaan Sapra
43beff91a3 Avoid dropping Postgres schema
The postgres user needs to be an owner of the public schema or a
superuser in order to execute the schema.sql for database
initialization.

To avoid that, two changes are required:
 - use `CREATE TABLE IF NOT EXISTS` in order to idempotently create the
   necessary tables
 - handle conflicts when inserting duplicate data

This follows the pattern in use by the
src/main/resources/db/mysql/{data,schema.sql} files.

Authored-by: Shaan Sapra <shsapra@vmware.com>
2022-01-06 07:22:50 +00:00
Dave Syer
c9534421c8 Remove PetRepository and use Owner as aggregate
Owner is really the aggregate root in DDD terms and there is no
need to directly access the Pet entity.
2022-01-05 08:24:58 +00:00
Fabian Muscariello
ce626da705 Add support for PostgreSQL
See #636
2021-12-07 16:55:01 +00:00
Dave Syer
eff7c9529f Use "date" type for date inputs
In 2021 we really should be using the browser's own date picker.
2021-12-06 14:33:58 +00:00
Dave Syer
67c8bf6a1f Fix ignores 2021-11-24 11:39:25 +00:00
Dave Syer
576c4eb58b Remove unused css files 2021-11-24 09:27:15 +00:00
Dave Syer
4ecc4c34c4 Make buttons look normal again 2021-11-24 09:14:14 +00:00
Dave Syer
ff2febe09f Put CSS generation in a Maven profile 2021-11-24 07:50:15 +00:00
Dave Syer
4d4727fce1 No need for jquery 2021-11-24 07:48:14 +00:00
Dave Syer
1095a15f0e Convert to SCSS and Bootstrap 5 2021-11-24 07:48:14 +00:00
Dave Syer
3eba970fff Fix page links 2021-11-19 13:34:47 +00:00
simrin051
8ad9c05f74 Add pagination for owners and vets lists in HTML
Fixes #91
2021-10-01 08:31:38 +01:00
Dave Syer
25ba1621a9
Add delimiter to list of pets 2021-09-14 17:33:24 +01:00
lsap
e7c879ed3a Update petclinic_db_setup_mysql.txt
Hey Team, thanks in advance!
2021-05-14 16:17:25 +01:00