You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Pierre Smits (JIRA)" <ji...@apache.org> on 2019/06/22 09:21:00 UTC

[jira] [Comment Edited] (OFBIZ-10150) supplierProductId Should Have Consistent Types Across Entities.

    [ https://issues.apache.org/jira/browse/OFBIZ-10150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16870158#comment-16870158 ] 

Pierre Smits edited comment on OFBIZ-10150 at 6/22/19 9:20 AM:
---------------------------------------------------------------

Hi [~jesse@thomasnetworks.net], [~rohit.hukkeri],

Based on cursory review, the patch works. But as you indicated you're migrating from another solution to OFBiz. In that case you may experience this length issue with more id fields. If so, you may consider adjusting the length of the 'id' field type definition.


was (Author: pfm.smits):
Hi [~jesse@thomasnetworks.net],

The patch works. But as you indicated you're migrating from another solution to OFBiz. In that case you may experience this length issue with more id fields. If so, you may consider adjusting the length of the 'id' field type definition.

> supplierProductId Should Have Consistent Types Across Entities.
> ---------------------------------------------------------------
>
>                 Key: OFBIZ-10150
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10150
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order, product
>    Affects Versions: Trunk
>         Environment: all
>            Reporter: jesse thomas
>            Assignee: Rohit Hukkeri
>            Priority: Minor
>         Attachments: OFBIZ-10150.patch
>
>
> During some data migration I hit an issue where my data for supplierProductId was too long. So I looked up the fields and noticed that the order item entity had a different type for the field than the supplier product entity. I think it would be a good idea to pick one so the two fields can be treated consistently. I would vote for id-long, but I think either way it would be good to have them be the same type. There are other fields that have this issue too if you are interested?
>   
> Thanks!
> applications/datamodel/entitydef/order-entitymodel.xml:      
> <entity entity-name="OrderItem".......
> <field name="supplierProductId" type="id-long"></field>
> applications/datamodel/entitydef/product-entitymodel.xml:      
> <entity entity-name="SupplierProduct"......
> <field name="supplierProductId" type="id"></field>



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)