Openbravo Issue Tracking System - Retail Modules | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0047610 | Retail Modules | Web POS | public | 2021-08-31 14:54 | 2021-09-01 11:14 |
| Reporter | alostale | ||||
| Assigned To | alostale | ||||
| Priority | normal | Severity | trivial | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Platform | OS | 5 | OS Version | ||
| Product Version | |||||
| Target Version | Fixed in Version | RR21Q4 | |||
| Merge Request Status | approved | ||||
| Review Assigned To | |||||
| OBNetwork customer | No | ||||
| Support ticket | |||||
| Regression level | |||||
| Regression date | |||||
| Regression introduced in release | |||||
| Regression introduced by commit | |||||
| Triggers an Emergency Pack | No | ||||
| Summary | 0047610: Simplify HQLProperty API adding convenient factory methods | ||||
| Description | The Java API to extend masterdata models [1] is quite verbose:
return Arrays.asList(
new HQLProperty("product.weight", "weight"),
new HQLProperty("product.taxCategory.name", "taxcategoryname"));
It could be simplified using static factory methods similar to JDK's Map.ofEntries [2] and Map.entry [3]. To something like:
import static org.openbravo.mobile.core.model.HQLProperty.property;
...
return HQLProperty.listOfProperties(
property("product.weight", "weight"),
property("product.taxCategory.name", "taxcategoryname"));
[1] http://wiki.openbravo.com/wiki/How_to_Extend_Models [^] [2] https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html#ofEntries(java.util.Map.Entry...) [^] [3] https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html#entry(K,V) [^] | ||||
| Steps To Reproduce | - | ||||
| Proposed Solution | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2021-08-31 14:54 | alostale | New Issue | |||
| 2021-08-31 14:54 | alostale | Assigned To | => Retail | ||
| 2021-08-31 14:54 | alostale | OBNetwork customer | => No | ||
| 2021-08-31 14:54 | alostale | Triggers an Emergency Pack | => No | ||
| 2021-09-01 08:03 | hgbot | Merge Request Status | => open | ||
| 2021-09-01 08:03 | hgbot | Note Added: 0131469 | |||
| 2021-09-01 11:11 | hgbot | Merge Request Status | open => approved | ||
| 2021-09-01 11:14 | hgbot | Resolution | open => fixed | ||
| 2021-09-01 11:14 | hgbot | Status | new => closed | ||
| 2021-09-01 11:14 | hgbot | Note Added: 0131470 | |||
| 2021-09-01 11:14 | hgbot | Fixed in Version | => RR21Q4 | ||
| 2021-09-01 11:14 | hgbot | Note Added: 0131471 | |||
| 2021-09-01 11:14 | alostale | Assigned To | Retail => alostale | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||