Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0032261 | Openbravo ERP | A. Platform | public | 2016-02-17 15:25 | 2016-03-17 10:56 |
|
Reporter | alostale | |
Assigned To | alostale | |
Priority | normal | Severity | trivial | Reproducibility | N/A |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR16Q2 | |
Merge Request Status | |
Review Assigned To | caristu |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0032261: implement a typed version of OBDal.getProxy |
Description | Existing OBDal.getProxy method allows to obtain a proxy to a BaseOBObject, based on an entity name.
Usually, this proxy is going to be used as an instance of that entity class. So in this common case it needs to be cast, it would be useful to have a typed version of this method so that returns a typed instance making not necessary to do the casting being also less error prone.
|
Steps To Reproduce | Assuming bp is a BusinessPartner, currently to get a proxy for it, it is needed to do:
BusinessPartner bp = (BusinessPartner) OBDal.getInstance().getProxy(BusinessPartner.ENTITY_NAME, bpId);
|
Proposed Solution | Ideally the code above should be equivalent to:
BusinessPartner bp = OBDal.getInstance().getProxy(BusinessPartner.class, bpId);
|
Additional Information | |
Tags | No tags attached. |
Relationships | blocks | feature request | 0032511 | 3.0PR16Q3 | closed | alostale | support JBoss AS 7.1.1 |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2016-02-17 15:25 | alostale | New Issue | |
2016-02-17 15:25 | alostale | Assigned To | => alostale |
2016-02-17 15:25 | alostale | Modules | => Core |
2016-02-17 15:25 | alostale | Triggers an Emergency Pack | => No |
2016-02-17 15:26 | alostale | Proposed Solution updated | |
2016-02-17 15:30 | hgbot | Checkin | |
2016-02-17 15:30 | hgbot | Note Added: 0084289 | |
2016-02-17 15:30 | hgbot | Status | new => resolved |
2016-02-17 15:30 | hgbot | Resolution | open => fixed |
2016-02-17 15:30 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/64b3eaea9b866f58cc4e480a6850ad787e1242ed [^] |
2016-02-17 15:30 | alostale | Review Assigned To | => caristu |
2016-02-19 08:17 | caristu | Note Added: 0084341 | |
2016-02-19 08:17 | caristu | Status | resolved => closed |
2016-02-19 08:17 | caristu | Fixed in Version | => 3.0PR16Q2 |
2016-03-17 10:56 | hudsonbot | Checkin | |
2016-03-17 10:56 | hudsonbot | Note Added: 0085147 | |
2017-11-02 09:57 | alostale | Relationship added | blocks 0032511 |