OFBiz view-entities are a convenient way of constructing SQL JOIN
statements. They do not force the creation of database tables or map to database tables as do entity definitions, but rather they allow OFBiz to create runtime views of related tables so that users may easily access joined tables without creating complicated SQL JOIN
statements.
View-entities are defined in entity definition files along with entity definitions. Make sure you have an entity definition file (to use for any view-entities) configured in an existing ofbiz-component.xml
.
The process for creating one or more view-entities is similar to that of creating an entity definition, and can be done by following these steps:
1. Open an existing entity definition file or create a new one.
2. Add one or more
view-entity
elements as shown here. Please note: XML declarations shown below are for demonstration purposes only. Statements have been removed to make reading easier:<view...