details:   https://code.openbravo.com/erp/devel/pi/rev/af7f765c5acb
changeset: 29595:af7f765c5acb
user:      Stefan Hühner <stefan.huehner <at> openbravo.com>
date:      Tue Jun 07 16:57:54 2016 +0200
summary:   Fixed 33126. Creating c_import_entry use Proxy to avoid reading from 
ad_role

Read to ad_role can be avoided by using Proxy object instead.

details:   https://code.openbravo.com/erp/devel/pi/rev/5ea6451d5092
changeset: 29596:5ea6451d5092
user:      Stefan Hühner <stefan.huehner <at> openbravo.com>
date:      Thu Jun 09 15:27:20 2016 +0200
summary:   Issue 33126. Improve change by used getProxy variant returning
proper Role.class instance directly instead of a bob and needing to cast it.

diffstat:

 src/org/openbravo/service/importprocess/ImportEntryManager.java |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 7c7933ca1dca -r 5ea6451d5092 
src/org/openbravo/service/importprocess/ImportEntryManager.java
--- a/src/org/openbravo/service/importprocess/ImportEntryManager.java   Thu Jun 
09 10:27:43 2016 +0200
+++ b/src/org/openbravo/service/importprocess/ImportEntryManager.java   Thu Jun 
09 15:27:20 2016 +0200
@@ -301,7 +301,7 @@
 
       ImportEntry importEntry = 
OBProvider.getInstance().get(ImportEntry.class);
       importEntry.setId(id);
-      importEntry.setRole(OBDal.getInstance().get(Role.class,
+      importEntry.setRole(OBDal.getInstance().getProxy(Role.class,
           OBContext.getOBContext().getRole().getId()));
       importEntry.setNewOBObject(true);
       importEntry.setImportStatus("Initial");

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to