mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-01-22 11:21:12 +00:00
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. |
||
|---|---|---|
| .. | ||
| model | ||
| owner | ||
| service | ||
| system | ||
| vet | ||
| PetclinicIntegrationTests.java | ||