details: /erp/devel/pi/rev/8e370a149fe4
changeset: 8012:8e370a149fe4
user: Martin Taal <martin.taal <at> openbravo.com>
date: Tue Aug 03 19:50:21 2010 +0200
summary: Fixes issue 14119: OBInterceptor sets detached user object from
OBContext in updatedBy property
diffstat:
src-test/org/openbravo/test/dal/DalPerformanceInventoryLineTest.java | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (20 lines):
diff -r 0db5542af927 -r 8e370a149fe4
src-test/org/openbravo/test/dal/DalPerformanceInventoryLineTest.java
--- a/src-test/org/openbravo/test/dal/DalPerformanceInventoryLineTest.java
Tue Aug 03 16:22:35 2010 +0200
+++ b/src-test/org/openbravo/test/dal/DalPerformanceInventoryLineTest.java
Tue Aug 03 19:50:21 2010 +0200
@@ -22,6 +22,7 @@
import java.math.BigDecimal;
import org.apache.log4j.Logger;
+import org.hibernate.Hibernate;
import org.hibernate.criterion.Expression;
import org.openbravo.dal.core.DalUtil;
import org.openbravo.dal.service.OBCriteria;
@@ -108,6 +109,8 @@
final InventoryCountLine baseLine = (InventoryCountLine)
DalUtil.copy(iclObc.list().get(0),
false);
final long time = System.currentTimeMillis();
+ Hibernate.initialize(baseLine.getUpdatedBy());
+ Hibernate.initialize(baseLine.getCreatedBy());
commitTransaction();
final OBCriteria<InventoryCount> icObc =
OBDal.getInstance().createCriteria(
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits