Thanks Jacques. I could have sworn we had this documented somewhere,
but I really don't remember where...
-David
On Jun 26, 2008, at 2:29 AM, Jacques Le Roux wrote:
Done :
http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-Developmenttips
Which leads to
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Contributors+Best+Practices#OFBizContributorsBestPractices-DeprecatingEntities
Jacques
From: "Jacques Le Roux" <[EMAIL PROTECTED]>
From: "David E Jones" <[EMAIL PROTECTED]>
[...big snip...]
BTW, whenever we deprecate an entity in OFBiz there are certain
things that now 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.
-David
I will at least put these very important informations in the FAQ.
But finally should not those kind of stuff being put in our Best
Practices ?
Jacques