Update:
All checks were successful
Docker Image CI / build-and-push (push) Successful in 11m9s
Docker Image CI / deploy (push) Successful in 27s
Docker Image CI / notify-failure (push) Has been skipped

-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:
2025-04-18 22:41:17 +02:00
parent ebce9820d2
commit a497b8162b
28 changed files with 908 additions and 55 deletions

View File

@@ -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;
}
}