ofbiz-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacques Le Roux <jacques.le.r...@les7arts.com>
Subject Re: Extend type entities to add name of detail entity where hasTable is true.
Date Fri, 01 Sep 2017 12:16:30 GMT
It's described here https://cwiki.apache.org/confluence/display/OFBIZ/General+Entity+Overview#GeneralEntityOverview-ExtensibilityPattern

What is the problem with ShipmentGatewayConfigType and PaymentGatewayConfigType (did not check)?

Jacques


Le 01/09/2017 à 13:18, Arun Patidar a écrit :
> Hello All,
>
> 'hasTable' field of 'Type' entities is used to give an idea that detail
> entity exists or not. We generally get the name of detail entity on the
> basis of typeId field value.
>
> For example :
>
> ContactMechType,contactMechTypeId = "POSTAL_ADDRESS"  then we go to
> PostalAddress for detail.
>
> similarly,
> ContactMechType,contactMechTypeId = "TELECOM_NUMBER"  then we go to
> TelecomNumber for detail.
>
> is it a best practice to identify the name of detail entity on the basis of
> typeId value?
>
> If yes, then there are some entities that are not following the pattern.
> Some of them are:
>     - ShipmentGatewayConfigType
>     - PaymentGatewayConfigType
>
> if not, then we can add a field in Type entities to mention the name of
> detail entity.
>
>
> Please let me know your thoughts.
>
>


Mime
View raw message