-delen van agenda toegevoegd -popup aangepast -accepteren van uitnodiging toegevoegd -koppelen van gebruiker aan bedrijf -versturen van uitnodiging via mail
87 lines
1.7 KiB
Java
87 lines
1.7 KiB
Java
package nl.veenm.paypoint.domain;
|
|
|
|
import jakarta.persistence.*;
|
|
|
|
import java.util.HashSet;
|
|
import java.util.Set;
|
|
|
|
@Entity
|
|
public class Company {
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
private Long id;
|
|
private String name;
|
|
private String email;
|
|
private String img_href;
|
|
private String address;
|
|
private String postal_code;
|
|
private String city;
|
|
|
|
@OneToMany(mappedBy = "company", cascade = CascadeType.ALL, orphanRemoval = true)
|
|
private Set<UserCompany> userCompanies = new HashSet<>();
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String getEmail() {
|
|
return email;
|
|
}
|
|
|
|
public void setEmail(String email) {
|
|
this.email = email;
|
|
}
|
|
|
|
public String getImg_href() {
|
|
return img_href;
|
|
}
|
|
|
|
public void setImg_href(String img_href) {
|
|
this.img_href = img_href;
|
|
}
|
|
|
|
public String getAddress() {
|
|
return address;
|
|
}
|
|
|
|
public void setAddress(String address) {
|
|
this.address = address;
|
|
}
|
|
|
|
public String getPostal_code() {
|
|
return postal_code;
|
|
}
|
|
|
|
public void setPostal_code(String postal_code) {
|
|
this.postal_code = postal_code;
|
|
}
|
|
|
|
public String getCity() {
|
|
return city;
|
|
}
|
|
|
|
public void setCity(String city) {
|
|
this.city = city;
|
|
}
|
|
|
|
public Set<UserCompany> getUserCompanies() {
|
|
return userCompanies;
|
|
}
|
|
|
|
public void setUserCompanies(Set<UserCompany> userCompanies) {
|
|
this.userCompanies = userCompanies;
|
|
}
|
|
}
|