From af49e500be4d74c9555e9423fd48533c0c5c06ae Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 19 Sep 2012 19:12:23 -0500 Subject: [PATCH] IDEMPIERE-254 2Pack Stabilization and Enhancement / Problems found importing packages --- .../src/org/adempiere/pipo2/AbstractElementHandler.java | 2 +- org.adempiere.pipo/src/org/adempiere/pipo2/PackInHandler.java | 2 +- org.adempiere.pipo/src/org/adempiere/pipo2/PackOutProcess.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/org.adempiere.pipo/src/org/adempiere/pipo2/AbstractElementHandler.java b/org.adempiere.pipo/src/org/adempiere/pipo2/AbstractElementHandler.java index 92bee91180..bb86bfb215 100644 --- a/org.adempiere.pipo/src/org/adempiere/pipo2/AbstractElementHandler.java +++ b/org.adempiere.pipo/src/org/adempiere/pipo2/AbstractElementHandler.java @@ -569,7 +569,7 @@ public abstract class AbstractElementHandler implements ElementHandler { String id = element.properties.get(idColumn).contents.toString(); if (id != null && id.trim().length() > 0) { Query query = new Query(ctx.ctx, tableName, idColumn+"=?", ctx.trx.getTrxName()); - po = query.setParameters(id.trim()).firstOnly(); + po = query.setParameters(Integer.valueOf(id.trim())).firstOnly(); } } return po; diff --git a/org.adempiere.pipo/src/org/adempiere/pipo2/PackInHandler.java b/org.adempiere.pipo/src/org/adempiere/pipo2/PackInHandler.java index 94be371932..660bbdde66 100644 --- a/org.adempiere.pipo/src/org/adempiere/pipo2/PackInHandler.java +++ b/org.adempiere.pipo/src/org/adempiere/pipo2/PackInHandler.java @@ -191,7 +191,7 @@ public class PackInHandler extends DefaultHandler { packageInst.saveEx(); } - m_ctx.ctx.put("AD_Package_Imp_ID", AD_Package_Imp_ID); + m_ctx.ctx.put("AD_Package_Imp_ID", String.valueOf(AD_Package_Imp_ID)); m_ctx.ctx.put("UpdateMode", m_updateDictionary); m_ctx.ctx.put("PackageDirectory", packageDirectory); m_ctx.packIn = packIn; diff --git a/org.adempiere.pipo/src/org/adempiere/pipo2/PackOutProcess.java b/org.adempiere.pipo/src/org/adempiere/pipo2/PackOutProcess.java index a5e009d032..6a54799dd7 100644 --- a/org.adempiere.pipo/src/org/adempiere/pipo2/PackOutProcess.java +++ b/org.adempiere.pipo/src/org/adempiere/pipo2/PackOutProcess.java @@ -179,7 +179,7 @@ public class PackOutProcess extends SvrProcess else if (X_AD_Package_Exp_Detail.TYPE_Role.equals(type)) return I_AD_Role.Table_Name; else if (X_AD_Package_Exp_Detail.TYPE_SQLStatement.equals(type)) - return "SQL_Statement"; + return "SQLStatement"; else if (X_AD_Package_Exp_Detail.TYPE_Table.equals(type)) return I_AD_Table.Table_Name; else if (X_AD_Package_Exp_Detail.TYPE_Window.equals(type))