Announcement
The Announcement entity, mapped to the announcement table.
| Table | announcement |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 6 |
| Relationships | 1 |
| Source | backend/src/main/java/com/motorph/payroll/model/Announcement.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
announcementId | Integer | announcement_id | — | primary key, generated |
title | String | title | — | — |
content | String | content | — | — |
announcementDate | LocalDate | announcement_date | — | — |
createdAt | LocalDateTime | created_at | — | — |
isArchived | Boolean | is_archived | — | — |
Plus tenant_id, inherited from TenantOwned. Hibernate stamps it on insert and adds where tenant_id = ? to every query, so it is never written or read by application code.
Relationships
| Field | Kind | Target | Join column | Required |
|---|---|---|---|---|
createdBy | @ManyToOne | Employee | created_by_employee_id | Yes |
Neighbourhood
Repository
AnnouncementRepository
Declared over Announcement with id type Integer, with JpaSpecificationExecutor for dynamic filtering. Source: backend/src/main/java/com/motorph/payroll/repository/AnnouncementRepository.java
Reached by
These controllers hold — directly or through a service they depend on — a repository over Announcement.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| AnnouncementController | /api/announcements | 7 | HR |
Generated page
This page is rebuilt from the source on every docs build by docs-site/scripts/gen-code-wiki.mjs. Editing it has no effect — change the code, or, if what you want to say is prose, write it in docs/.