Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0041505Openbravo ERPA. Platformpublic2019-07-31 12:172019-08-22 14:45
caristu 
caristu 
highminoralways
closedfixed 
5
 
3.0PR19Q4 
alostale
Core
No
0041505: Ability to convert to JSON objects of classes extending BaseOBObject with DataToJsonConverter
It would be nice if the toJsonConverter.toJsonObjects method would allow to receive as parameter a list of objects of any class that extends BaseOBObject.

Currently it only allows a list of BaseOBObjects, therefore, for example is not possible to convert to JSON a list of object retrieved from a query:

      List<PriceAdjustment> discountCandidates = OBDal.getInstance()
          .createQuery(PriceAdjustment.class, whereClause).list();

      toJsonConverter.toJsonObjects(discountCandidates) --> this is currently not possible
In description
No tags attached.
related to defect 0041516 closed caristu API change: change type of list received by DataToJsonConverter.toJsonObjects method 
Issue History
2019-07-31 12:17caristuNew Issue
2019-07-31 12:17caristuAssigned To => caristu
2019-07-31 12:17caristuModules => Core
2019-07-31 12:17caristuTriggers an Emergency Pack => No
2019-07-31 12:17caristuIssue generated from0041479
2019-08-01 08:59caristuIssue cloned0041516
2019-08-01 08:59caristuRelationship addedrelated to 0041516
2019-08-01 09:08hgbotCheckin
2019-08-01 09:08hgbotNote Added: 0113748
2019-08-01 09:08hgbotStatusnew => resolved
2019-08-01 09:08hgbotResolutionopen => fixed
2019-08-01 09:08hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/91fd6f0a596267d0b6b60c12455f4c2b8f823090 [^]
2019-08-01 09:09caristuReview Assigned To => alostale
2019-08-02 07:41alostaleNote Added: 0113768
2019-08-02 07:41alostaleStatusresolved => closed
2019-08-02 07:41alostaleFixed in Version => 3.0PR19Q4
2019-08-22 14:45hudsonbotCheckin
2019-08-22 14:45hudsonbotNote Added: 0114192

Notes
(0113748)
hgbot   
2019-08-01 09:08   
Repository: erp/devel/pi
Changeset: 91fd6f0a596267d0b6b60c12455f4c2b8f823090
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Thu Aug 01 09:05:08 2019 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/91fd6f0a596267d0b6b60c12455f4c2b8f823090 [^]

fixes bug 41505: DataToJsonConverter can convert classes extending BaseOBObject

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/DataToJsonConverter.java
---
(0113768)
alostale   
2019-08-02 07:41   
reviewed
(0114192)
hudsonbot   
2019-08-22 14:45   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/ad3efd3bd07c [^]
Maturity status: Test