1. test/application.properties: add keystore and change geocoding 2. change List in RoutingPreferences to mutable type
This commit is contained in:
@@ -57,7 +57,7 @@ public class User {
|
||||
@Enumerated(EnumType.STRING)
|
||||
@CollectionTable(name = "user_roles", joinColumns = @JoinColumn(name = "user_id"))
|
||||
@Column(name = "role")
|
||||
private Set<RoleName> roles;
|
||||
private Set<RoleName> roles = new HashSet<>();
|
||||
|
||||
@OneToOne
|
||||
@JoinColumn(name = "id", referencedColumnName = "user_id")
|
||||
@@ -99,11 +99,11 @@ public class User {
|
||||
this.visibilityPrivacy = VisibilityPrivacy.NONE;
|
||||
this.friendCode = java.util.UUID.randomUUID().toString(); // generate unique friend code
|
||||
this.routingPreferences = RoutingPreferences.getDefaultPreferences(); // Init with default routing preferences
|
||||
this.roles = new HashSet<>();
|
||||
this.roles.add(RoleName.USER);
|
||||
this.statsList = new StatsList(this);
|
||||
this.profileImage = new ProfileImageEntity(this, null);
|
||||
}
|
||||
|
||||
this.profileImage = new ProfileImageEntity();
|
||||
this.profileImage.setUser(this); }
|
||||
|
||||
@PrePersist
|
||||
private void ensureFriendCode() {
|
||||
|
||||
Reference in New Issue
Block a user