You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Nicolas Malin (Jira)" <ji...@apache.org> on 2022/06/01 07:03:00 UTC
[jira] [Updated] (OFBIZ-12629) Add getOrDefaut function on GenericEntity
[ https://issues.apache.org/jira/browse/OFBIZ-12629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nicolas Malin updated OFBIZ-12629:
----------------------------------
Attachment: OFBIZ-12629.patch
> Add getOrDefaut 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)