Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0032261
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Openbravo ERP] A. PlatformtrivialN/A2016-02-17 15:252016-03-17 10:56
ReporteralostaleView Statuspublic 
Assigned Toalostale 
PrioritynormalResolutionfixedFixed in Version3.0PR16Q2
StatusclosedFix in branchFixed in SCM revision64b3eaea9b86
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tocaristu
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0032261: implement a typed version of OBDal.getProxy

DescriptionExisting 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 ReproduceAssuming 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 SolutionIdeally the code above should be equivalent to:
BusinessPartner bp = OBDal.getInstance().getProxy(BusinessPartner.class, bpId);
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks feature request 00325113.0PR16Q3 closedalostale support JBoss AS 7.1.1 

-  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
Powered by Mantis Bugtracker