content: package vmware.services.organization.model;
  
  import org.springframework.data.annotation.Id;
  import org.springframework.data.mongodb.core.mapping.Document;
  
  import java.util.ArrayList;
  import java.util.List;
  
  @Document(collection = "organization")
  public class Organization {
  
  	@Id
  	private String id;
  	private String name;
  	private String address;
  	private List<Department> departments = new ArrayList<>();
  	private List<Employee> employees = new ArrayList<>();
  
  	public Organization() {
  
  	}
  	
  	public Organization(String name, String address) {
  		this.name = name;
  		this.address = address;
  	}
  
  	public String getId() {
  		return id;
  	}
  
  	public void setId(String id) {
  		this.id = id;
  	}
  
  	public String getName() {
  		return name;
  	}
  
  	public void setName(String name) {
  		this.name = name;
  	}
  
  	public String getAddress() {
  		return address;
  	}
  
  	public void setAddress(String address) {
  		this.address = address;
  	}
  
  	public List<Department> getDepartments() {
  		return departments;
  	}
  
  	public void setDepartments(List<Department> departments) {
  		this.departments = departments;
  	}
  
  	public List<Employee> getEmployees() {
  		return employees;
  	}
  
  	public void setEmployees(List<Employee> employees) {
  		this.employees = employees;
  	}
  
  	@Override
  	public String toString() {
  		return "Organization [id=" + id + ", name=" + name + ", address=" + address + "]";
  	}
  
  }
  