Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0032261 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
feature request | [Openbravo ERP] A. Platform | trivial | N/A | 2016-02-17 15:25 | 2016-03-17 10:56 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR16Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 64b3eaea9b86 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | caristu | |||||||
Web browser | ||||||||
Modules | Core | |||||||
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); | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0084289) hgbot (developer) 2016-02-17 15:30 |
Repository: erp/devel/pi Changeset: 64b3eaea9b866f58cc4e480a6850ad787e1242ed Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Wed Feb 17 15:29:19 2016 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/64b3eaea9b866f58cc4e480a6850ad787e1242ed [^] fixed issue 32261: implement a typed version of OBDal.getProxy New getProxy method returns a typed instance of the desired entity, making unnecessary to cast it. --- M src/org/openbravo/dal/service/OBDal.java --- |
(0084341) caristu (developer) 2016-02-19 08:17 |
Verified |
(0085147) hudsonbot (developer) 2016-03-17 10:56 |
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/b22fb0500156 [^] Maturity status: Test |
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 |
Copyright © 2000 - 2009 MantisBT Group |