Commit graph

3 commits

Author SHA1 Message Date
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
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
Dapeng
beb46b2b3b support switching db init script at deployment 2016-06-27 12:35:37 +08:00
Renamed from src/main/resources/db/mysql/initDB.sql (Browse further)