Skip to main content

Announcement

The Announcement entity, mapped to the announcement table.

Tableannouncement
Tenant-scopedYes — extends TenantOwned
Columns6
Relationships1
Sourcebackend/src/main/java/com/motorph/payroll/model/Announcement.java

Columns​

FieldTypeColumnNullNotes
announcementIdIntegerannouncement_id—primary key, generated
titleStringtitle——
contentStringcontent——
announcementDateLocalDateannouncement_date——
createdAtLocalDateTimecreated_at——
isArchivedBooleanis_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​

FieldKindTargetJoin columnRequired
createdBy@ManyToOneEmployeecreated_by_employee_idYes

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.

ControllerBase pathEndpointsModule
AnnouncementController/api/announcements7HR

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/.