TinCompliance
The TinCompliance entity, mapped to the tin_compliance table.
| Table | tin_compliance |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 3 |
| Relationships | 1 |
| Source | backend/src/main/java/com/motorph/payroll/model/TinCompliance.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
tinComplianceId | Integer | tin_compliance_id | — | primary key, generated |
tinNumber | String | tin_number | — | — |
dateRegistered | LocalDate | date_registered | — | — |
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 |
|---|---|---|---|---|
employee | @ManyToOne | Employee | employee_id | Yes |
Neighbourhood
Repository
TinComplianceRepository
Declared over TinCompliance with id type Integer, with JpaSpecificationExecutor for dynamic filtering. Source: backend/src/main/java/com/motorph/payroll/repository/TinComplianceRepository.java
| Method | Returns | Notes |
|---|---|---|
findWithEmployeeByTinComplianceId(Integer tinComplianceId) | Optional<TinCompliance> | derived |
Reached by
These controllers hold — directly or through a service they depend on — a repository over TinCompliance.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| TinComplianceController | /api/tin-compliance | 5 | PH Statutory |
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/.