O'Reilly logo

Apache OFBiz Cookbook by Ruth Hoffman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building a view-entity

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.

Getting ready

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.

How to do it...

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required