Skip to main content

Warehouse

The Warehouse entity, mapped to the warehouse table.

Tablewarehouse
Tenant-scopedYes — extends TenantOwned
Columns4
Relationships0
Sourcebackend/src/main/java/com/motorph/payroll/model/Warehouse.java

Columns​

FieldTypeColumnNullNotes
warehouseIdIntegerwarehouse_id—primary key, generated
nameStringname—unique
addressStringaddressYes—
descriptionStringdescriptionYes—

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.

Referenced by​

EntityFieldKind
WarehouseLocationwarehouse@ManyToOne

Neighbourhood​

Repository​

WarehouseRepository​

Declared over Warehouse with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/WarehouseRepository.java

MethodReturnsNotes
existsByNameIgnoreCase(String name)booleanderived
existsByNameIgnoreCaseAndWarehouseIdNot(String name, Integer warehouseId)booleanderived

Reached by​

These controllers hold — directly or through a service they depend on — a repository over Warehouse.

ControllerBase pathEndpointsModule
InventoryController/api/inventory38Inventory & 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/.