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:00:00 UTC
[jira] [Created] (OFBIZ-12629) Add getOrDefaut function on GenericEntity
Nicolas Malin created OFBIZ-12629:
-------------------------------------
Summary: 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
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)