An entity in a projection maps directly to an IFS Logical Unit (LU) — a named business object backed by a database table and a PL/SQL API package. The projection entity declares which attributes are exposed, how they’re labeled, what business rules apply, and what references and actions are attached.
In Cust layer files you almost always use @Override entity to extend an existing Core entity rather than define one from scratch. This lets you add attributes, change labels, attach references, or add actions without touching the Core code.
@Overrideentity TiInspectionBridgeConn using TiInspectionBridge { -- ludependencies: tell the framework which LUs to invalidate after save ludependencies = TiFinishingBridge, TiFinToInspBridge, TiStitchToFinBridge, TiCardToStitchBridge, TiWarpToStitchBridge; -- Reference to a MaterialHistory entity with a custom where clause @DynamicComponentDependency MFGSTD reference MaterialHistRef(MaterialHistoryId) to MaterialHistory(MaterialHistoryId) { where = "material_history_action IN ('SCRAPPRODWIP','RECMFGPROD')"; } -- Standard references reference FinToInspBridgeRef(AframeIssueTrans) to TiFinToInspBridge(AframeIssueTrans); reference FinishingRef(SourceAframeHu) to TiFinishingBridge(AframeHu); -- Arrays define one-to-many child collections navigable in the UI array StitchToFinBridgeArray(SourceAframeHu) to TiStitchToFinBridge(AframeHu); array ByprodToFinArray(SourceAframeHu) to TiByprodToFinBridge(AframeHu);}
Patterns & Tips
Use @Override — Almost Never Define a New Entity
In customer-layer development, you almost always extend Core entities with @Override. Defining a completely new entity is only needed when you’re adding a wholly new business concept with its own LU, database table, and API package.
Computed fetch Attributes Are Read-Only by Default
Any attribute whose fetch calls a PL/SQL function rather than mapping a column is implicitly read-only. You don’t need editable = [false] — but adding it makes intent explicit for the next developer.
ludependencies Affects Client Performance
Every LU listed in ludependencies triggers a client-side cache refresh after any save. Keep the list minimal — only include LUs whose data is actually displayed on the same screen. Over-listing causes unnecessary round trips.
Entity vs. Query
Use entity when you need Create, Update, or Delete operations. Use Query when the data is read-only (reports, audit trails, aggregated views). The framework generates different OData endpoints for each.
See Also
Entityset — wraps an entity and exposes it to client pages