Skip to main content

ItemCategory

The ItemCategory entity, mapped to the item_category table.

Tableitem_category
Tenant-scopedYes — extends TenantOwned
Columns3
Relationships0
Sourcebackend/src/main/java/com/motorph/payroll/model/ItemCategory.java

Columns​

FieldTypeColumnNullNotes
categoryIdIntegercategory_id—primary key, generated
nameStringname—unique
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
InventoryItemcategory@ManyToOne

Neighbourhood​

Repository​

ItemCategoryRepository​

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

MethodReturnsNotes
existsByNameIgnoreCase(String name)booleanderived
existsByNameIgnoreCaseAndCategoryIdNot(String name, Integer categoryId)booleanderived

Reached by​

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

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/.