[ 
https://issues.apache.org/jira/browse/OFBIZ-12629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicolas Malin updated OFBIZ-12629:
----------------------------------
    Summary: Add getOrDefault function on GenericEntity  (was: Add getOrDefaut 
function on GenericEntity)

> Add getOrDefault function on GenericEntity
> ------------------------------------------
>
>                 Key: OFBIZ-12629
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12629
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework/entity
>    Affects Versions: 22.01.01, Upcoming Branch
>            Reporter: Nicolas Malin
>            Priority: Trivial
>         Attachments: OFBIZ-12629.patch
>
>
> With the newest java version, the Map interface have some new function like 
> getOrDefaut() that I propose to override on GenericEntity.
> ex :
> {code:java}
> String description = product.getOrDefault("brandName", 
> product.getString("internalName"));
> {code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to