Update:
-delen van agenda toegevoegd -popup aangepast -accepteren van uitnodiging toegevoegd -koppelen van gebruiker aan bedrijf -versturen van uitnodiging via mail
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package nl.veenm.paypoint.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import jakarta.persistence.*;
|
||||
|
||||
import java.util.HashSet;
|
||||
@@ -18,9 +17,8 @@ public class Company {
|
||||
private String postal_code;
|
||||
private String city;
|
||||
|
||||
@ManyToMany(mappedBy = "companies")
|
||||
@JsonIgnore
|
||||
private Set<AppUser> users = new HashSet<>();
|
||||
@OneToMany(mappedBy = "company", cascade = CascadeType.ALL, orphanRemoval = true)
|
||||
private Set<UserCompany> userCompanies = new HashSet<>();
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
@@ -78,11 +76,11 @@ public class Company {
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
public Set<AppUser> getUsers() {
|
||||
return users;
|
||||
public Set<UserCompany> getUserCompanies() {
|
||||
return userCompanies;
|
||||
}
|
||||
|
||||
public void setUsers(Set<AppUser> users) {
|
||||
this.users = users;
|
||||
public void setUserCompanies(Set<UserCompany> userCompanies) {
|
||||
this.userCompanies = userCompanies;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user