diff --git a/src/main/java/nl/connectedit/swiss/domain/entity/Group.java b/src/main/java/nl/connectedit/swiss/domain/entity/Group.java index 36b7e13..7631837 100644 --- a/src/main/java/nl/connectedit/swiss/domain/entity/Group.java +++ b/src/main/java/nl/connectedit/swiss/domain/entity/Group.java @@ -30,6 +30,7 @@ public class Group extends AbstractEntity { private EventType type; @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY) + @OrderBy("name") private List rounds;// = new ArrayList<>(); @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY) diff --git a/src/main/resources/application-local-postgres.yaml b/src/main/resources/application-local-postgres.yaml index 2443128..ebcea17 100755 --- a/src/main/resources/application-local-postgres.yaml +++ b/src/main/resources/application-local-postgres.yaml @@ -6,7 +6,7 @@ spring: # - org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration # - org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration datasource: - url: jdbc:postgresql://localhost:5432/swiss?currentSchema=swiss + url: jdbc:postgresql://localhost:5432/postgres?currentSchema=swiss username: ${DB_USERNAME:postgres} password: ${DB_PASSWORD:postgres} flyway: