WarehouseTransfer
The WarehouseTransfer entity, mapped to the warehouse_transfer table.
| Table | warehouse_transfer |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 5 |
| Relationships | 4 |
| Source | backend/src/main/java/com/motorph/payroll/model/WarehouseTransfer.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
transferId | Integer | transfer_id | — | primary key, generated |
quantity | Integer | quantity | — | — |
notes | String | notes | Yes | — |
status | String | status | — | — |
transferredAt | LocalDateTime | transferred_at | — | — |
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 |
|---|---|---|---|---|
item | @ManyToOne | InventoryItem | item_id | — |
fromLocation | @ManyToOne | WarehouseLocation | from_location_id | — |
toLocation | @ManyToOne | WarehouseLocation | to_location_id | — |
performedBy | @ManyToOne | User | performed_by | — |
Neighbourhood
Repository
WarehouseTransferRepository
Declared over WarehouseTransfer with id type Integer, with JpaSpecificationExecutor for dynamic filtering. Source: backend/src/main/java/com/motorph/payroll/repository/WarehouseTransferRepository.java
Reached by
These controllers hold — directly or through a service they depend on — a repository over WarehouseTransfer.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| WarehouseTransferController | /api/inventory/transfers | 2 | Inventory & Portal |
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/.