Skip to content

Commit 6148ddd

Browse files
areydsyer
authored andcommitted
Uses the date property of the Visit entity
1 parent ee8f8dc commit 6148ddd

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/org/springframework/samples/petclinic/owner

1 file changed

+1
-1
lines changed

src/main/java/org/springframework/samples/petclinic/owner/Pet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class Pet extends NamedEntity {
5555

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

6161
public void setBirthDate(LocalDate birthDate) {

0 commit comments

Comments
 (0)