content: package vmware.services.department.model;
  
  import org.springframework.data.annotation.Id;
  import org.springframework.data.annotation.Transient;
  import org.springframework.data.mongodb.core.mapping.Document;
  
  import java.util.ArrayList;
  import java.util.List;
  
  @Document(collection = "department")
  public class Department {
  
  	@Id
  	private String id;
  	private Long organizationId;
  	private String name;
  	@Transient
  	private List<Employee> employees = new ArrayList<>();
  
  	public Department() {
  		
  	}
  
  	public Department(Long organizationId, String name) {
  		super();
  		this.organizationId = organizationId;
  		this.name = name;
  	}
  
  	public String getId() {
  		return id;
  	}
  
  	public void setId(String id) {
  		this.id = id;
  	}
  
  	public Long getOrganizationId() {
  		return organizationId;
  	}
  
  	public void setOrganizationId(Long organizationId) {
  		this.organizationId = organizationId;
  	}
  
  	public String getName() {
  		return name;
  	}
  
  	public void setName(String name) {
  		this.name = name;
  	}
  
  	public List<Employee> getEmployees() {
  		return employees;
  	}
  
  	public void setEmployees(List<Employee> employees) {
  		this.employees = employees;
  	}
  
  	@Override
  	public String toString() {
  		return "Department [id=" + id + ", organizationId=" + organizationId + ", name=" + name + "]";
  	}
  
  }
  