Class DepartmentEntity

java.lang.Object
com.bytedesk.core.base.BaseEntity
com.bytedesk.core.department.DepartmentEntity
All Implemented Interfaces:
Serializable

@Entity public class DepartmentEntity extends BaseEntity
Department entity for organizational hierarchy management Manages department structure with parent-child relationships Database Table: bytedesk_team_department Purpose: Stores department information and hierarchical organization structure
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • name

      private String name
      Name of the department
    • description

      private String description
      Description of the department's function
    • parent

      private DepartmentEntity parent
      Parent department in the hierarchy
    • children

      private Set<DepartmentEntity> children
      Child departments under this department
  • Constructor Details

    • DepartmentEntity

      public DepartmentEntity()
  • Method Details

    • addChild

      public void addChild(DepartmentEntity child)
      Add a child department to this department
    • removeChild

      public void removeChild(DepartmentEntity child)
      Remove a child department from this department