Web / Apache OFBiz Interview questions
What is the difference between a static entity and a view-entity?
A regular entity maps directly to one physical database table - fields correspond to columns, and CRUD operations write straight through.
A view-entity, by contrast, is a virtual entity assembled from one or more underlying entities via declared member-entity and view-link elements - conceptually a saved SQL join, described declaratively instead of written by hand.
| Entity | View-Entity |
| Backed by one physical table | Composed from multiple entities via joins |
| Supports create/store/remove directly | Generally read-only |
| Fields = table columns | Fields aliased from member entities |
View-entities are the standard way to expose report-style or cross-entity data (like an order with its ship-to party name already joined in) to a screen or form without writing custom Java or ad hoc SQL for every query.
More Related questions...