Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Replaced "id-ne" with "id" in reference to OFBIZ-9351
Written By: David E. Jones, dejc@me.com
Edited by: Les Austin and Pawel H Debski

...

Related Documents:

Entity Engine Configuration Guide

 

 

...

Configuration Guide

...

Introduction

...

The Open For Business Entity Engine is a set of tools and patterns used to model and manage entity specific data. In this context an entity is a piece of data defined by a set of fields and a set of relations to other entities. This definition comes from the standard Entity-Relation modeling concepts of Relational Database Management Systems. The goal of the entity engine is to simplify the enterprise wide use of entity data. This includes definition, maintenance, quality assurance, and development of entity related functionality. 

...

    <entity title="Sample Entity"
copyright="Copyright (c) 2001 John Doe Enterprises"
author="John Doe" version="1.0"
package-name="org.ofbiz.commonapp.sample"
entity-name="SampleEntity"
table-name="SAMPLE_ENTITY">
<field name="primaryKeyFieldOne" col-name="PRIMARY_KEY_FIELD_ONE" type="id-ne"></field>
<field name="primaryKeyFieldTwo" type="id-ne"></field>
<field name="fieldOne" type="long-varchar"></field>
<field name="fieldTwo" type="long-varchar"></field>
<field name="foreignKeyOne" type="id"></field>
<prim-key field="primaryKeyFieldOne" />
<prim-key field="primaryKeyFieldTwo" />
<relation type="one" rel-entity-name="OtherSampleEntity">
<key-map field-name="foreignKeyOne" rel-field-name="primaryKeyOne" />
</relation>
<relation type="one" title="Self" rel-entity-name="SampleEntity">
<key-map field-name="primaryKeyFieldOne" />
<key-map field-name="primaryKeyFieldTwo" />
</relation>
<relation type="many" title="AllOne" rel-entity-name="SampleEntity">
<key-map field-name="primaryKeyFieldOne" />
</relation>
</entity>

...