Package com.bytedesk.core.department
Class DepartmentEntity
java.lang.Object
com.bytedesk.core.base.BaseEntity
com.bytedesk.core.department.DepartmentEntity
- All Implemented Interfaces:
Serializable
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 Summary
FieldsModifier and TypeFieldDescriptionprivate Set<DepartmentEntity>
Child departments under this departmentprivate String
Description of the department's functionprivate String
Name of the departmentprivate DepartmentEntity
Parent department in the hierarchyprivate static final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChild
(DepartmentEntity child) Add a child department to this departmentvoid
removeChild
(DepartmentEntity child) Remove a child department from this departmentMethods inherited from class com.bytedesk.core.base.BaseEntity
getCreatedAtString, getUpdatedAtString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
name
Name of the department -
description
Description of the department's function -
parent
Parent department in the hierarchy -
children
Child departments under this department
-
-
Constructor Details
-
DepartmentEntity
public DepartmentEntity()
-
-
Method Details
-
addChild
Add a child department to this department -
removeChild
Remove a child department from this department
-