Nicolas Malin created OFBIZ-11182:
-------------------------------------
Summary: PicklistStatusHistory doesn't follow history entity status pattern
Key: OFBIZ-11182
URL:
https://issues.apache.org/jira/browse/OFBIZ-11182 Project: OFBiz
Issue Type: Improvement
Components: product
Affects Versions: Trunk
Reporter: Nicolas Malin
Assignee: Nicolas Malin
The entity PicklistStatusHistory record each status change realized on picklist.
It can't be convert to entity-auto easily because PicklistStatusHistory's fields pattern doesn't follow same entities like ShipmentStatus and PartyStatus.
I propose to deprecate the entity PicklistStatusHistory:
{code:java}
<entity entity-name="OldPicklistStatusHistory" table-name="PICKLIST_STATUS_HISTORY"
package-name="org.apache.ofbiz.shipment.picklist"
title="Picklist Status History">
<field name="picklistId" type="id"></field>
<field name="changeDate" type="date-time"></field>
<field name="changeUserLoginId" type="id-vlong"></field>
<field name="statusId" type="id"></field>
<field name="statusIdTo" type="id"></field>
<prim-key field="picklistId"/>
<prim-key field="changeDate"/>...
</entity>
{code}
and replace it with an entity managed natively by entity-auto engine
{code:java}
<entity entity-name="PicklistStatus"
package-name="org.apache.ofbiz.shipment.picklist"
title="Picklist Status History">
<field name="picklistId" type="id"/>
<field name="statusDate" type="date-time"/>
<field name="changeByUserLoginId" type="id-vlong"/>
<field name="statusId" type="id"/>
<field name="statusIdTo" type="id"/>
<prim-key field="picklistId"/>
<prim-key field="statusDate"/>...
</entity>{code}
--
This message was sent by Atlassian Jira
(v8.3.2#803003)