Skip to main content

ItemSerial

The ItemSerial entity, mapped to the item_serial table.

Tableitem_serial
Tenant-scopedYes — extends TenantOwned
Columns5
Relationships2
Sourcebackend/src/main/java/com/motorph/payroll/model/ItemSerial.java

Columns​

FieldTypeColumnNullNotes
serialIdIntegerserial_id—primary key, generated
serialNoStringserial_no——
statusStringstatus——
receivedAtLocalDateTimereceived_at——
notesStringnotesYes—

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
item@ManyToOneInventoryItemitem_idYes
location@ManyToOneWarehouseLocationlocation_id—

Neighbourhood​

Repository​

ItemSerialRepository​

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

MethodReturnsNotes
findByItem_ItemIdAndSerialNoIgnoreCase(Integer itemId, String serialNo)Optional<ItemSerial>derived
existsByItem_ItemIdAndSerialNoIgnoreCase(Integer itemId, String serialNo)booleanderived

Reached by​

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

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