Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor
DeprecatingEntities
DeprecatingEntities
A more advanced topic should be also noted here.

Warning
titleDeprecating entities

Whenever we deprecate an entity in OFBiz there are certain things that MUST be done or all committers should reject the patch:

  1. rename the entity to deprecate by adding an "Old" prefix to it, then specify a table-name attribute on the entity so it still points to the same table in the database
  2. create a new entity the replaces the old one, and comment on that fact
  3. implement a service to move data from the old/deprecated entity to the new one

You'll see this pattern used in a few places. This is kind of the way that users in general have some sort of hope of being able to update from one revision of OFBiz to another.
More information here

How to Send in Your Contributions (or how to create and apply patches)

...