Skip to main content

CustomerOrderItem

The CustomerOrderItem entity, mapped to the customer_order_item table.

Tablecustomer_order_item
Tenant-scopedYes — extends TenantOwned
Columns4
Relationships2
Sourcebackend/src/main/java/com/motorph/payroll/model/CustomerOrderItem.java

Columns​

FieldTypeColumnNullNotes
orderItemIdIntegerorder_item_id—primary key, generated
quantityIntegerquantity——
unitPriceBigDecimalunit_price——
totalPriceBigDecimaltotal_price——

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
order@ManyToOneCustomerOrderorder_idYes
item@ManyToOneInventoryItemitem_idYes

Referenced by​

EntityFieldKind
CustomerOrderitems@OneToMany

Neighbourhood​

Repository​

No Spring Data repository is declared over this entity. It is reached through another entity's association, through the EntityManager directly, or it is written only by a migration.


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