Stéphane Nicoll
2beb2380a3
Remove outdated references to HSQLDB
...
Closes gh-2165
2025-12-30 09:34:29 +01:00
henribon
8f08b38f2c
fix: update MySQL user creation for MySQL 8.0+ compatibility
...
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
akan.tileubergenov
bf3bc29e56
Fix postgres data
2024-05-16 14:09:10 +01: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
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
Fabian Muscariello
ce626da705
Add support for PostgreSQL
...
See #636
2021-12-07 16:55:01 +00:00
lsap
e7c879ed3a
Update petclinic_db_setup_mysql.txt
...
Hey Team, thanks in advance!
2021-05-14 16:17:25 +01:00
Frank Migliorino
b91e21378c
Fix docs for setting profiles
...
Add using -Dspring-boot.run.jvmArguments to the notes for how to set up using MySQL.
2021-05-14 13:01:26 +01:00
Cesarion Pshebytski
8b1ac6736e
Updated user for mysql
...
Updated creation of user for mysql db. Previously lack of quotes resulted in creation of incorrect user (petclinic@% instead of just petclinic)
2020-11-06 11:13:25 +00:00
Stephane Nicoll
c0847b7571
Add support for H2
...
Closes gh-584
2020-03-20 18:27:18 +01:00
Dave Syer
5c35771a20
Wrong name for user.sql script
2020-03-10 08:29:36 +00:00
Dave Syer
5d57e0d5e2
Re-organise mysql scripts so the app runs without root access
...
It works better that way with test containers and in k8s.
2020-01-03 05:29:11 -05:00
trisberg
e280d12144
Fix docs on mysql, use initialization-mode
2019-09-23 22:14:15 +02:00
Dave Syer
e157f200f8
Clarify the docs on mysql
2019-06-21 14:45:39 +01:00
Stephane Nicoll
0c59090c1a
Polish
2019-03-20 11:13:21 +01:00
Dave Syer
0c7db646ef
Make mysql configuration more first class
2016-12-05 21:50:29 +00:00
Dave Syer
8b76a54814
Update mysql readme
2016-12-05 12:05:01 +00:00
Dapeng
beb46b2b3b
support switching db init script at deployment
2016-06-27 12:35:37 +08:00
Antoine Rey
e74b1bc160
#141 Configure Unicode and UTF-8 MySQL database for Chinese language
2016-04-05 22:05:41 +02:00
kadinyazilimci
e7f68999bf
owners search has been case insensitive
2016-02-25 09:36:20 +10:00
thinksh
0504ec9fe3
Update petclinic_db_setup_mysql.txt
...
Correct initialization script file's name
2016-02-03 23:19:46 -05:00
Vlad Selpukhin
099b848b62
Update JDBC file naming in MySQL steup instruction
2015-04-23 15:43:48 +03:00
Mic
9ee5e6f096
visit dates were not consistent
2013-02-21 14:50:00 +08:00
Gordon Dickens
14f882221f
file formatting and missing @Override on Java classes
2013-02-19 10:56:21 -05:00
Mic
ed3df00bd7
Pets were getting old
...
Changed the birth date for all the pets (so we do not have a 12 year
old hamster where their life expectancy is 2-3 years :) )
2013-02-12 08:29:13 +08:00
Mic
5b8ef8ea10
replacing one Spring Data Repo with native JPA
...
see https://jira.springsource.org/browse/DATAJPA-292
2013-02-07 09:25:30 +08:00
Mic
2df7267a48
updated a broken link and renamed script files for mysql
2013-02-01 09:40:23 +08:00
Mic
8b6cfab27d
removing datasource declaration so we only rely on an internal database connection pool
2013-01-30 09:05:17 +08:00
Mic
608c42f74b
migrated from SimpleJdbcTemplate to JdbcTemplate
2013-01-14 22:13:04 +08:00
Mic
4e35adb6b0
migrated to hsql 2.2.8 and fixed a couple of JPA issues
2013-01-14 16:55:09 +08:00
Mic
9f8acc05ad
migration to JPA annotations
...
- added JPA annotations to POJO classes
- merged JPA Repos with Hibernate repos so we only use JPA
- renamed .txt files to .sql
- moved Spring configuration files so it is easier to use them inside
JUnit tests
2013-01-14 16:12:05 +08:00
Costin Leau
6f056b5072
SPR-6447
...
+ removed unused script
2013-01-09 17:13:19 +08:00
Costin Leau
d6b57ac053
SPR-6447
...
+ improve mysql script to prevent data from being added if it's already present
2013-01-09 17:13:19 +08:00
Costin Leau
9617efef32
SPR-6447
...
+ improve DataSource setup
2013-01-09 17:13:18 +08:00
Costin Leau
19173a063e
SPR-6447
...
+ improve DataSource setup
2013-01-09 17:13:18 +08:00
Costin Leau
50b87ef75f
SPR-6447
...
+ moved db files around
+ moved JPA/AOP META-INF/ files into the webapp classpath
2013-01-09 17:13:17 +08:00