| I’ve stumbled upon this issue when I tried to convert the Spring PetClinic to a Quarkus application. I’ve reported it there as https://github.com/quarkusio/quarkus/issues/3643 . I’ve been able to work around the issue by changing Vet like so:
@ManyToOne
@JoinColumn(name = "pet_id")
public Pet pet;
And changing Pet like so:
@OneToMany(cascade = CascadeType.ALL, mappedBy = "pet", fetch = FetchType.EAGER)
public Set<Visit> visits = new LinkedHashSet<>();
Maybe this helps anyone who accidentally hits the same bug. |