Skip to content

Commit

Permalink
Uses the date property of the Visit entity
Browse files Browse the repository at this point in the history
  • Loading branch information
arey authored and dsyer committed Dec 17, 2024
1 parent ee8f8dc commit 6148ddd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class Pet extends NamedEntity {

@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
@JoinColumn(name = "pet_id")
@OrderBy("visit_date ASC")
@OrderBy("date ASC")
private final Set<Visit> visits = new LinkedHashSet<>();

public void setBirthDate(LocalDate birthDate) {
Expand Down

0 comments on commit 6148ddd

Please sign in to comment.