Skip to main content

Store

The Store entity, mapped to the store table.

Tablestore
Tenant-scopedYes — extends TenantOwned
Columns9
Relationships0
Sourcebackend/src/main/java/com/motorph/payroll/model/Store.java

Columns​

FieldTypeColumnNullNotes
storeIdIntegerstore_id—primary key, generated
nameStringname——
addressStringaddressYes—
contactPersonStringcontact_personYes—
contactPhoneStringcontact_phoneYes—
contactEmailStringcontact_emailYes—
statusStringstatus——
createdAtLocalDateTimecreated_at——
updatedAtLocalDateTimeupdated_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.

Referenced by​

EntityFieldKind
StoreInventorystore@ManyToOne

Neighbourhood​

Repository​

StoreRepository​

Declared over Store with id type Integer, with JpaSpecificationExecutor for dynamic filtering. Source: backend/src/main/java/com/motorph/payroll/repository/StoreRepository.java

MethodReturnsNotes
existsByName(String name)booleanderived
existsByNameAndStoreIdNot(String name, Integer storeId)booleanderived

Reached by​

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

ControllerBase pathEndpointsModule
StoreController/api/inventory/stores7Inventory & 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/.