Project:
View Revisions: Issue #29947 | [ Back to Issue ] | ||
Summary | 0029947: Wrong query launched when OBDal.getInstance.getSession.refresh(Object) | ||
Revision | 2015-05-21 11:09 by jorge-garcia | ||
Steps To Reproduce | Warehouse w = OBDal.getInstance().get(Warehouse.class, "B2D40D8A5D644DD89E329DC297309055"); System.out.println(w); OBDal.getInstance().getSession().refresh(w); * Refresh query must be the same as Get query. Get Query: select warehouse0_.M_Warehouse_ID as M1_653_1_, warehouse0_.AD_Client_ID as AD2_653_1_, warehouse0_.AD_Org_ID as AD3_653_1_, warehouse0_.IsActive as IsActive653_1_, warehouse0_.Created as Created653_1_, warehouse0_.CreatedBy as CreatedBy653_1_, warehouse0_.Updated as Updated653_1_, warehouse0_.UpdatedBy as UpdatedBy653_1_, warehouse0_.Value as Value653_1_, warehouse0_.Name as Name653_1_, warehouse0_.Description as Descrip11_653_1_, warehouse0_.C_Location_ID as C12_653_1_, warehouse0_.Separator as Separator653_1_, warehouse0_.IsShipper as IsShipper653_1_, warehouse0_.Shippercode as Shipper15_653_1_, warehouse0_.FromDocumentNo as FromDoc16_653_1_, warehouse0_.ToDocumentNo as ToDocum17_653_1_, warehouse0_.M_Returnlocator_ID as M18_653_1_, warehouse0_.M_Warehouse_Rule_ID as M19_653_1_, warehouse0_.Isallocated as Isalloc20_653_1_ from M_Warehouse warehouse0_ where warehouse0_.M_Warehouse_ID=? Refresh Query: select warehouse0_.M_Warehouse_ID as M1_653_1_, warehouse0_.AD_Client_ID as AD2_653_1_, warehouse0_.AD_Org_ID as AD3_653_1_, warehouse0_.IsActive as IsActive653_1_, warehouse0_.Created as Created653_1_, warehouse0_.CreatedBy as CreatedBy653_1_, warehouse0_.Updated as Updated653_1_, warehouse0_.UpdatedBy as UpdatedBy653_1_, warehouse0_.Value as Value653_1_, warehouse0_.Name as Name653_1_, warehouse0_.Description as Descrip11_653_1_, warehouse0_.C_Location_ID as C12_653_1_, warehouse0_.Separator as Separator653_1_, warehouse0_.IsShipper as IsShipper653_1_, warehouse0_.Shippercode as Shipper15_653_1_, warehouse0_.FromDocumentNo as FromDoc16_653_1_, warehouse0_.ToDocumentNo as ToDocum17_653_1_, warehouse0_.M_Returnlocator_ID as M18_653_1_, warehouse0_.M_Warehouse_Rule_ID as M19_653_1_, warehouse0_.Isallocated as Isalloc20_653_1_, locatorlis1_.M_Warehouse_ID as M10_653_3_, locatorlis1_.M_Locator_ID as M1_3_, locatorlis1_.M_Locator_ID as M1_359_0_, locatorlis1_.AD_Client_ID as AD2_359_0_, locatorlis1_.AD_Org_ID as AD3_359_0_, locatorlis1_.IsActive as IsActive359_0_, locatorlis1_.Created as Created359_0_, locatorlis1_.CreatedBy as CreatedBy359_0_, locatorlis1_.Updated as Updated359_0_, locatorlis1_.UpdatedBy as UpdatedBy359_0_, locatorlis1_.Value as Value359_0_, locatorlis1_.M_Warehouse_ID as M10_359_0_, locatorlis1_.PriorityNo as PriorityNo359_0_, locatorlis1_.IsDefault as IsDefault359_0_, locatorlis1_.X as X359_0_, locatorlis1_.Y as Y359_0_, locatorlis1_.Z as Z359_0_, locatorlis1_.Barcode as Barcode359_0_, locatorlis1_.EM_OBWHS_Type as EM17_359_0_ from M_Warehouse warehouse0_ left outer join M_Locator locatorlis1_ on warehouse0_.M_Warehouse_ID=locatorlis1_.M_Warehouse_ID where warehouse0_.M_Warehouse_ID=? |
||
Revision | 2015-05-21 11:05 by jorge-garcia | ||
Steps To Reproduce | Warehouse w = OBDal.getInstance().get(Warehouse.class, "B2D40D8A5D644DD89E329DC297309055"); System.out.println(w); OBDal.getInstance().getSession().refresh(w); |
Copyright © 2000 - 2009 MantisBT Group |